Add retries to all apt commands
This commit is contained in:
parent
d54844746e
commit
2ba8f1cfc3
|
@ -125,6 +125,9 @@
|
||||||
apt:
|
apt:
|
||||||
update-cache: yes
|
update-cache: yes
|
||||||
when: (newhost is defined and newhost) or apt_config.changed or apt_key.changed
|
when: (newhost is defined and newhost) or apt_config.changed or apt_key.changed
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
tags: base-apt
|
tags: base-apt
|
||||||
|
|
||||||
- name: aptitude safe upgrade with autoremove
|
- name: aptitude safe upgrade with autoremove
|
||||||
|
@ -133,6 +136,9 @@
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
upgrade: safe
|
upgrade: safe
|
||||||
when: newhost is defined and newhost
|
when: newhost is defined and newhost
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
tags: base-apt
|
tags: base-apt
|
||||||
|
|
||||||
- name: install dbus
|
- name: install dbus
|
||||||
|
@ -141,6 +147,9 @@
|
||||||
- dbus
|
- dbus
|
||||||
state: latest
|
state: latest
|
||||||
when: newhost is defined and newhost
|
when: newhost is defined and newhost
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
tags: base-apt
|
tags: base-apt
|
||||||
|
|
||||||
- name: clean out apt cache
|
- name: clean out apt cache
|
||||||
|
@ -165,6 +174,9 @@
|
||||||
state: absent
|
state: absent
|
||||||
purge: yes
|
purge: yes
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
tags: base-packages
|
tags: base-packages
|
||||||
|
|
||||||
- name: set override debconf selections
|
- name: set override debconf selections
|
||||||
|
@ -178,6 +190,9 @@
|
||||||
name:
|
name:
|
||||||
- python
|
- python
|
||||||
when: debian_version|int <= 10
|
when: debian_version|int <= 10
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
tags: base-packages
|
tags: base-packages
|
||||||
|
|
||||||
- name: install common packages (bullseye+)
|
- name: install common packages (bullseye+)
|
||||||
|
@ -185,6 +200,9 @@
|
||||||
name:
|
name:
|
||||||
- python-is-python3
|
- python-is-python3
|
||||||
when: debian_version|int >= 11
|
when: debian_version|int >= 11
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
tags: base-packages
|
tags: base-packages
|
||||||
|
|
||||||
- name: install common packages (all versions)
|
- name: install common packages (all versions)
|
||||||
|
@ -269,6 +287,9 @@
|
||||||
- plymouth-themes
|
- plymouth-themes
|
||||||
- linux-image-amd64
|
- linux-image-amd64
|
||||||
- linux-headers-amd64
|
- linux-headers-amd64
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
tags: base-packages
|
tags: base-packages
|
||||||
|
|
||||||
- name: install cleanup scripts
|
- name: install cleanup scripts
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
- ceph-mgr
|
- ceph-mgr
|
||||||
- radosgw
|
- radosgw
|
||||||
state: latest
|
state: latest
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
|
|
||||||
- name: add admin users to ceph groups
|
- name: add admin users to ceph groups
|
||||||
user:
|
user:
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
name:
|
name:
|
||||||
- frr
|
- frr
|
||||||
state: latest
|
state: latest
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
|
|
||||||
- name: install frr configuration
|
- name: install frr configuration
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
- ceph-common
|
- ceph-common
|
||||||
- libguestfs-tools
|
- libguestfs-tools
|
||||||
state: latest
|
state: latest
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
|
|
||||||
- name: add libvirt user to ceph group
|
- name: add libvirt user to ceph group
|
||||||
user:
|
user:
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
name: "{{ package_list }}"
|
name: "{{ package_list }}"
|
||||||
state: latest
|
state: latest
|
||||||
update-cache: yes
|
update-cache: yes
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
|
|
||||||
- name: stop and disable postgresql
|
- name: stop and disable postgresql
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
- rinse
|
- rinse
|
||||||
state: latest
|
state: latest
|
||||||
when: newhost is defined and newhost
|
when: newhost is defined and newhost
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
|
|
||||||
- name: install pvc node daemon configuration
|
- name: install pvc node daemon configuration
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
- zookeeper
|
- zookeeper
|
||||||
- zookeeper-bin
|
- zookeeper-bin
|
||||||
state: latest
|
state: latest
|
||||||
|
register: apt_res
|
||||||
|
retries: 5
|
||||||
|
until: apt_res is success
|
||||||
|
|
||||||
- name: install zookeeper configuration
|
- name: install zookeeper configuration
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in New Issue