main.yml 540 B

1234567891011121314151617181920
  1. ---
  2. - name: Install etcd
  3. yum: pkg=etcd state=installed disable_gpg_check=yes
  4. - name: Install etcdctl
  5. yum: pkg=etcdctl state=installed disable_gpg_check=yes
  6. - name: Write etcd global config file
  7. template: src=etcd.conf.j2 dest=/etc/etcd/etcd.conf
  8. notify:
  9. - restart etcd
  10. - name: Open firewalld port for etcd
  11. firewalld: port=4001/tcp permanent=false state=enabled
  12. - name: Save firewalld port for etcd
  13. firewalld: port=4001/tcp permanent=true state=enabled
  14. - name: Enable etcd
  15. service: name=etcd enabled=yes state=started