File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 88
88
when :
89
89
- item.enable | default(true) | bool
90
90
- " 'group' in item"
91
- become_method : " ansible.builtin.sudo"
91
+ become_method : ansible.builtin.sudo
92
92
# Need to change working directory otherwise we try to switch back to non-existent directory.
93
93
become_flags : " -i"
94
94
- name : Add system users
95
95
ansible.builtin.user :
96
96
name : " {{ item.user }}"
97
97
loop : " {{ appliances_local_users }}"
98
98
when : item.enable | default(true) | bool
99
- become_method : " ansible.builtin.sudo"
99
+ become_method : ansible.builtin.sudo
100
100
# Need to change working directory otherwise we try to switch back to non-existent directory.
101
101
become_flags : " -i"
102
102
- name : Reset ssh connection to allow user changes to affect ansible_user
Original file line number Diff line number Diff line change 43
43
- name : Set up Ansible user
44
44
ansible.builtin.user :
45
45
name : " {{ (appliances_local_users_default | selectattr('user.name', 'eq', appliances_local_users_ansible_user_name))[0]['user'] }}"
46
- become_method : " ansible.builtin.sudo"
46
+ become_method : ansible.builtin.sudo
47
47
# Need to change working directory otherwise we try to switch back to non-existent directory.
48
48
become_flags : " -i"
49
49
become : true
53
53
tasks :
54
54
- name : Reset persistent SSH connections
55
55
ansible.builtin.meta : reset_connection
56
+
56
57
- hosts : localhost
57
58
gather_facts : false
58
59
become : false
You can’t perform that action at this time.
0 commit comments