summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks/main.yml
blob: 8ed803119a3da5c64abec98df994b3fe501da134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: Install etcd
  yum: pkg=etcd state=present disable_gpg_check=yes

- name: Write etcd global config file
  template:
    src: etcd.conf.j2
    dest: /etc/etcd/etcd.conf
  notify:
    - restart etcd

- name: Enable etcd
  service:
    name: etcd
    state: started
    enabled: yes