fix: pkg upgrade --dry-run always returns an error
It is considered as the same flow as the user refusing to perform the actual upgrade See https://github.com/freebsd/pkg/issues/1470
This commit is contained in:
parent
b1a9d16f50
commit
1671c7b1e2
|
@ -20,6 +20,8 @@
|
|||
|
||||
- name: Upgrade FreeBSD packages - dry-run
|
||||
command: pkg upgrade --dry-run
|
||||
failed_when: False # --dry-run always returns failure
|
||||
# https://github.com/freebsd/pkg/issues/1470
|
||||
check_mode: no
|
||||
when: ansible_distribution == 'FreeBSD' and ansible_check_mode
|
||||
register: result_pkg
|
||||
|
|
Loading…
Reference in a new issue