add a few more 'check_mode:no' props for compatiblity with --check mode of ansible
This commit is contained in:
parent
6d9caa7a9b
commit
785ce1cd26
5 changed files with 7 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
|||
stat:
|
||||
path: '{{ conf_dir }}/x-pack/users'
|
||||
register: old_users_file
|
||||
check_mode: no
|
||||
|
||||
- name: Copy the old users file from the old depreacted location
|
||||
copy:
|
||||
|
|
@ -31,6 +32,7 @@
|
|||
register: current_file_users
|
||||
when: manage_file_users
|
||||
changed_when: False
|
||||
check_mode: no
|
||||
|
||||
- name: set fact users_to_remove
|
||||
set_fact: users_to_remove={{ current_file_users.stdout_lines | difference (es_users.file.keys()) }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue