main.yml 292 B

12345678910111213141516
  1. ---
  2. - name: Install etcd
  3. yum: pkg=etcd state=present disable_gpg_check=yes
  4. - name: Write etcd global config file
  5. template:
  6. src: etcd.conf.j2
  7. dest: /etc/etcd/etcd.conf
  8. notify:
  9. - restart etcd
  10. - name: Enable etcd
  11. service:
  12. name: etcd
  13. state: started
  14. enabled: yes