mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
fix(user): ignore ssh key errors in check mode
In check mode, the task fails if it's supposed to be adding ssh keys to a user who doesn't exist. Ignoring errors in check mode makes it possible to run the task in check mode even if there are new users to be added.
This commit is contained in:
parent
0e98261665
commit
4d1fae6b77
1 changed files with 1 additions and 0 deletions
|
@ -25,3 +25,4 @@
|
|||
exclusive: true
|
||||
become: true
|
||||
when: "user.attrs.active | default(false)"
|
||||
ignore_errors: "{{ ansible_check_mode }}"
|
||||
|
|
Loading…
Reference in a new issue