Skip to content

Commit

Permalink
Merge pull request #11 from Rosa-Luxemburgstiftung-Berlin/issue1-pkg-…
Browse files Browse the repository at this point in the history
…upgrade

issue #1 - implemented a pkg upgrade task
  • Loading branch information
zerwes authored Aug 20, 2024
2 parents faf85b8 + 6dc783b commit e65b52d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ opn_update_force: false
opn_update_wait_for_reboot_4_minor_upgrade: 120
opn_update_wait_for_reboot_4_major_upgrade: 1800

# run a extra pkg upgrade after a upgrade
opn_update_pkg_upgrade: true
...
5 changes: 5 additions & 0 deletions tasks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@
- _opn_major_update
- not opn_update_force

- name: run pkg upgrade # noqa no-changed-when
ansible.builtin.command: pkg upgrade -y
when:
- opn_update_pkg_upgrade | bool

- name: reload ansible_local facts
ansible.builtin.setup:
filter: ansible_local
Expand Down

0 comments on commit e65b52d

Please sign in to comment.