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