r
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: get user
|
- name: get user
|
||||||
become: yes
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
become_user: root
|
||||||
ansible.builtin.command: whoami
|
ansible.builtin.command: whoami
|
||||||
|
|
||||||
# - name: Run whoami without become.
|
# - name: Run whoami without become.
|
||||||
|
|||||||
Reference in New Issue
Block a user