File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 40
40
- hosts : cluster
41
41
gather_facts : false
42
42
tasks :
43
- - name : Add groups
43
+ - name : Prevent ssh hanging if shared home is unavailable
44
+ lineinfile :
45
+ path : /etc/profile
46
+ search_string : HOSTNAME=$(/usr/bin/hostnamectl --transient 2>/dev/null) || \
47
+ state : absent
48
+ - name : Add system user groups
44
49
ansible.builtin.group : " {{ item.group }}"
45
50
loop : " {{ appliances_local_users }}"
46
51
when :
50
55
# Need to change working directory otherwise we try to switch back to non-existent directory.
51
56
become_flags : ' -i'
52
57
become : true
53
- - name : Add users
58
+ - name : Add system users
54
59
ansible.builtin.user : " {{ item.user }}"
55
60
loop : " {{ appliances_local_users }}"
56
61
when : item.enable | default(true) | bool
You can’t perform that action at this time.
0 commit comments