main.yml 302 B

123456789101112131415161718
  1. ---
  2. # Install ansible client
  3. - name: Install Ansible
  4. yum:
  5. pkg: ansible
  6. state: installed
  7. when: ansible_pkg_mgr == "yum"
  8. - name: Install Ansible
  9. dnf:
  10. pkg: ansible
  11. state: installed
  12. when: ansible_pkg_mgr == "dnf"
  13. - include: config.yml
  14. vars:
  15. cfg_options: "{{ ans_config }}"