We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dcb7e7 commit 96f70cdCopy full SHA for 96f70cd
tasks/users.yaml
@@ -14,11 +14,6 @@
14
dest: "/etc/ansible/facts.d/users.fact"
15
content: "{{ system.users.keys() | list | to_json }}"
16
17
-- name: Update facts
18
- when: users_fact_installed.changed
19
- changed_when: yes
20
- ansible.builtin.setup: {}
21
-
22
- name: Compare the user variables with the users fact on the system
23
ansible.builtin.set_fact:
24
old_users_var: "{{ (ansible_local.users | default([]) | difference(system.users.keys() | list)) + system.users_delete }}"
@@ -81,6 +76,6 @@
81
76
loop_control:
82
77
label: "{{ item.key }}"
83
78
84
-- name: Sync the list of current users to the target host
79
+- name: Update facts
85
80
changed_when: users_created.changed or users_deleted.changed
86
ansible.builtin.setup: {}
0 commit comments