feat: move retry to package task
This commit is contained in:
parent
0b6c62968e
commit
f17f857da6
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,6 @@
|
||||||
- name: "manage packages"
|
- name: "manage packages"
|
||||||
when: 'ansible_os_family == "Alpine"'
|
when: 'ansible_os_family == "Alpine"'
|
||||||
become: true
|
become: true
|
||||||
retries: 3
|
|
||||||
block:
|
block:
|
||||||
|
|
||||||
# install packages
|
# install packages
|
||||||
|
|
@ -13,6 +12,7 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: "present"
|
state: "present"
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
retries: 3
|
||||||
with_items:
|
with_items:
|
||||||
- "bash"
|
- "bash"
|
||||||
- "btop"
|
- "btop"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue