Skip to content

Commit

Permalink
issue #4 - improve pause between tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Nov 14, 2024
1 parent fb2d92c commit 61903a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ opn_packages: []
opn_packages_remove: []

# seconds to wait betwen tasks
opn_plugpack_sleep: 5
opn_plugpack_sleep: 1
...
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
cmd: "/usr/local/opnsense/scripts/firmware/launcher.sh remove {{ item }}"
removes: "/usr/local/opnsense/version/{{ item | split('-', 1) | last }}"
with_items: "{{ opn_plugins_remove }}"
loop_control:
pause: "{{ opn_plugpack_sleep }}"

- name: give the process some time for settling ...
ansible.builtin.pause:
Expand All @@ -15,6 +17,8 @@
cmd: "/usr/local/opnsense/scripts/firmware/launcher.sh install {{ item }}"
creates: "/usr/local/opnsense/version/{{ item | split('-', 1) | last }}"
with_items: "{{ opn_plugins | default([]) }}"
loop_control:
pause: "{{ opn_plugpack_sleep }}"

- name: give the process some time for settling ...
ansible.builtin.pause:
Expand All @@ -33,4 +37,5 @@
community.general.pkgng:
name: "{{ opn_packages }}"
state: present

...

0 comments on commit 61903a6

Please sign in to comment.