bootstrap: pass ansible_user variable for "remote_user" if defined
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
- hosts: all
|
||||
become: true
|
||||
user: admin
|
||||
remote_user: "{{ ansible_user|default('admin') }}"
|
||||
tasks:
|
||||
- name: Verify if system is Debian
|
||||
debug:
|
||||
|
||||
Reference in New Issue
Block a user