Put on hold the Ansible package update until is fixed

Package update for Ansible breaks[1] with:
Ansible 2.7 crashes on apt upgrade
because it upgrades itself to 2.8:
"fragment_class is None"

[1]: https://github.com/ansible/ansible/issues/56636

Change-Id: I1dabe448edfb118440b9ef1ee59c2e080d16ccf8
Closes-Bug: 1831589
(cherry picked from commit 53650f9635)
This commit is contained in:
Carlos Camacho 2019-06-04 12:03:05 +02:00
parent b8ebdfda4e
commit 126ab39816
2 changed files with 17 additions and 6 deletions

View File

@ -263,9 +263,14 @@ outputs:
- step|int == 3
- os_net_config_need_upgrade.stdout
- os_net_config_has_config.rc == 0
# Exclude ansible until https://github.com/ansible/ansible/issues/56636
# is available
- name: Update all packages
when: step|int == 3
package: name=* state=latest
yum:
name: '*'
state: latest
exclude: ansible
external_upgrade_tasks:
- name: Clean up upgrade artifacts
when: step|int == 1
@ -289,9 +294,14 @@ outputs:
- name: Exit if existing yum process
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
# Exclude ansible until https://github.com/ansible/ansible/issues/56636
# is available
- name: Update all packages
package: name=* state=latest
when: step == "3"
when: step|int == 3
yum:
name: '*'
state: latest
exclude: ansible
# This is failsafe unless openvswitch package does something to the systemd service state.
- name: Ensure openvswitch is running after update
when: step|int == 3

View File

@ -188,8 +188,9 @@ outputs:
name: openvswitch
enabled: yes
state: started
- name: upgrade all packages
package:
- name: Update all packages
when: step|int == 3
yum:
name: '*'
state: latest
when: step|int == 3
exclude: ansible