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:
Serge van Ginderachter 2018-05-12 12:47:54 +02:00
parent b1a9d16f50
commit 1671c7b1e2
No known key found for this signature in database
GPG key ID: D08FC082B8E46E8E

View file

@ -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