main.yml 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_tasks: "{{ role_path }}/tasks/{{ ansible_distribution }}/main.yml"
  6. tags: setup
  7. when: sensu_master
  8. or sensu_client
  9. - import_tasks: "redis.yml"
  10. tags: redis
  11. when: redis_server
  12. and sensu_deploy_redis_server
  13. - import_tasks: "ssl.yml"
  14. tags: ssl
  15. - import_tasks: "rabbit.yml"
  16. tags: rabbitmq
  17. when: rabbitmq_server
  18. and sensu_deploy_rabbitmq_server
  19. - import_tasks: "common.yml"
  20. tags: common
  21. when: sensu_master
  22. or sensu_client
  23. - import_tasks: "server.yml"
  24. tags: server
  25. when: sensu_master
  26. - import_tasks: "dashboard.yml"
  27. tags: dashboard
  28. when: sensu_include_dashboard
  29. - import_tasks: "client.yml"
  30. tags: client
  31. when: sensu_client
  32. - import_tasks: "plugins.yml"
  33. tags: plugins
  34. when: sensu_include_plugins