main.yml 1.1 KB

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