main.yml 945 B

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