sanity_checks.yml 530 B

123456789101112131415
  1. ---
  2. - name: Verify Requirements
  3. hosts: oo_first_master
  4. roles:
  5. - role: lib_utils
  6. tasks:
  7. # sanity_checks is a custom action plugin defined in lib_utils.
  8. # This module will loop through all the hostvars for each host
  9. # specified in check_hosts.
  10. # Since sanity_checks is an action_plugin, it executes on the control host.
  11. # Thus, sanity_checks cannot gather new information about any hosts.
  12. - name: Run variable sanity checks
  13. sanity_checks:
  14. check_hosts: "{{ groups['oo_all_hosts'] }}"
  15. run_once: True