centos_9.yml 412 B

123456789101112131415161718
  1. ---
  2. - name: Include RedHat General Repo Init
  3. include_tasks: redhat-general-repo.yml
  4. - name: Enable {{ ansible_distribution }} Modules
  5. shell: dnf module enable -y "{{dnf_module}}"
  6. with_items:
  7. - "{{ dnf_modules }}"
  8. loop_control:
  9. index_var: item_index
  10. loop_var: dnf_module
  11. become: true
  12. when:
  13. - dnf_modules is defined
  14. - name: Include RedHat Family Common Tasks
  15. include_tasks: redhat.yml