diff options
Diffstat (limited to 'roles/ansible')
-rw-r--r-- | roles/ansible/tasks/main.yml | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml index f79273824..ea14fb39a 100644 --- a/roles/ansible/tasks/main.yml +++ b/roles/ansible/tasks/main.yml @@ -2,16 +2,8 @@ # 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" + action: "{{ ansible_pkg_mgr }} name=ansible state=present" + when: not openshift.common.is_containerized | bool - include: config.yml vars: |