main.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. # tasks/main.yml: "Master" playbook for the sensu.sensu-ansible role
  3. - include_vars: "{{ ansible_distribution }}.yml"
  4. - include: "{{ role_path }}/tasks/{{ ansible_distribution }}/main.yml"
  5. tags: setup
  6. when: sensu_master
  7. or sensu_client
  8. - include: "{{ role_path }}/tasks/redis.yml"
  9. tags: redis
  10. when: redis_server
  11. and sensu_deploy_redis_server
  12. static: false
  13. - include: "{{ role_path }}/tasks/ssl.yml"
  14. tags: ssl
  15. - include: "{{ role_path }}/tasks/rabbit.yml"
  16. tags: rabbitmq
  17. when: rabbitmq_server
  18. and sensu_deploy_rabbitmq_server
  19. static: false
  20. - include: "{{ role_path }}/tasks/common.yml"
  21. tags: common
  22. when: sensu_master
  23. or sensu_client
  24. - include: "{{ role_path }}/tasks/server.yml"
  25. tags: server
  26. when: sensu_master
  27. static: false
  28. - include: "{{ role_path }}/tasks/dashboard.yml"
  29. tags: dashboard
  30. when: sensu_include_dashboard
  31. static: false
  32. - include: "{{ role_path }}/tasks/client.yml"
  33. tags: client
  34. when: sensu_client
  35. - include: "{{ role_path }}/tasks/plugins.yml"
  36. tags: plugins
  37. when: sensu_include_plugins
  38. static: false