Skip to content

Commit dcc9133

Browse files
authored
Merge branch 'master' into add-http3-support
2 parents 42dfa5e + fe21a35 commit dcc9133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/connection/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
- block:
4444
- name: Set remote user for each host
4545
set_fact:
46-
ansible_user: "{{ ansible_user | default((connection_status.stdout_lines | intersect(['root', '\e[0;32mroot', '\e[0;33mroot']) | count) | ternary('root', admin_user)) }}"
46+
ansible_user: "{{ ansible_user | default(('| CHANGED |' in connection_status.stdout) | ternary('root', admin_user)) }}"
4747
check_mode: no
4848

4949
- name: Announce which user was selected

0 commit comments

Comments
 (0)