You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
422 B

  1. ---
  2. - name: restart etcd
  3. command: /bin/true
  4. notify:
  5. - reload systemd
  6. - start etcd
  7. - reload etcd
  8. - name: reload systemd
  9. command: systemctl daemon-reload
  10. when: ansible_service_mgr == "systemd"
  11. - name: start etcd
  12. service:
  13. name: etcd
  14. enabled: yes
  15. state: started
  16. - name: reload etcd
  17. service:
  18. name: etcd
  19. state: "{{ 'restarted' if etcd_deployment_type == 'host' else 'reloaded' }}"