Skip to content

Commit 6c59d2a

Browse files
committed
fix formatting
1 parent 49697ac commit 6c59d2a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tasks/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,15 @@
6464
__ssh_skip_defaults: "{{ ssh_skip_defaults if ssh_skip_defaults != 'auto'
6565
else (ssh_user is not none) or
6666
(ssh_drop_in_name is not none and __ssh_supports_drop_in) }}"
67-
__ssh_config_file: "{{ ssh_config_file if ssh_config_file is not none
68-
else ansible_facts['getent_passwd'][ssh_user][4] ~ '/.ssh/config'
69-
if ssh_user is not none and ansible_facts['getent_passwd'] is defined
70-
else __ssh_drop_in_template | replace('{name}', ssh_drop_in_name)
71-
if ssh_drop_in_name is not none and __ssh_supports_drop_in
72-
else '/etc/ssh/ssh_config' }}"
67+
__ssh_config_file: "{{ ssh_config_file
68+
if ssh_config_file is not none
69+
else
70+
ansible_facts['getent_passwd'][ssh_user][4] ~ '/.ssh/config'
71+
if ssh_user is not none and ansible_facts['getent_passwd'] is defined
72+
else
73+
__ssh_drop_in_template | replace('{name}', ssh_drop_in_name)
74+
if ssh_drop_in_name is not none and __ssh_supports_drop_in
75+
else '/etc/ssh/ssh_config' }}"
7376
__ssh_config_owner: "{{ ssh_config_owner if ssh_config_owner is not none
7477
else ssh_user if ssh_user is not none
7578
else 'root' }}"

0 commit comments

Comments
 (0)