Migrate tripleo-packages service to ansible package module

It is not necessary to exclude specific Ceph packages when running
yum update in Rocky so this change removes the --exclude argument.

Note that it also removes update_cache which is not supported by
the 'package' module.

Change-Id: I8465f16415e69b1932726cdc1644a53370364708
This commit is contained in:
Giulio Fidente 2018-08-10 12:39:24 +02:00
parent 6a4dcca632
commit fc2a5ae4ab
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ outputs:
- os_net_config_has_config.rc == 0
- name: Update all packages
when: step|int == 3
yum: name=* state=latest exclude=ceph*,librados*,librbd*,libcephfs*,librgw*,python-rados*,python-rbd*,python-cephfs*,python-rgw*,rbd-mirror
pacakge: name=* state=latest
update_tasks:
- name: Check for existing yum.pid
stat: path=/var/run/yum.pid
@ -104,7 +104,7 @@ outputs:
fail: msg="ERROR existing yum.pid detected - can't continue! Please ensure there is no other package update process for the duration of the minor update worfklow. Exiting."
when: (step|int == 0 or step|int == 3) and yum_pid_file.stat.exists
- name: Update all packages
yum: name=* state=latest update_cache=yes exclude=ceph*,librados*,librbd*,libcephfs*,librgw*,python-rados*,python-rbd*,python-cephfs*,python-rgw*,rbd-mirror # cache for tripleo/+bug/1703830
package: name=* state=latest
when: step == "3"
fast_forward_upgrade_tasks:
- name: Register repo type and args