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