sanity_checks.yml 624 B

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