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

- name: Install etcdctl
  yum: pkg=etcdctl state=installed disable_gpg_check=yes

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

- name: Open firewalld port for etcd
  firewalld: port=4001/tcp permanent=false state=enabled

- name: Save firewalld port for etcd
  firewalld: port=4001/tcp permanent=true state=enabled

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