diff options
Diffstat (limited to 'roles/os_update_latest/tasks')
-rw-r--r-- | roles/os_update_latest/tasks/main.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/os_update_latest/tasks/main.yml b/roles/os_update_latest/tasks/main.yml index 40eec8d35..2400164fa 100644 --- a/roles/os_update_latest/tasks/main.yml +++ b/roles/os_update_latest/tasks/main.yml @@ -1,8 +1,8 @@ --- -- name: Update all packages - yum: name=* state=latest - when: ansible_pkg_mgr == "yum" +- fail: + msg: "Update is not yet supported by this playbook on atomic hosts" + when: openshift.common.is_containerized | bool - name: Update all packages - dnf: name=* state=latest - when: ansible_pkg_mgr == "dnf" + action: "{{ ansible_pkg_mgr }} name=* state=latest" + when: not openshift.common.is_containerized | bool
\ No newline at end of file |