This commit is contained in:
alecsandruchirosca
2024-05-02 21:56:06 +03:00
parent 075a098a41
commit d4b4e15ebf

View File

@@ -1,9 +1,9 @@
- hosts: all - hosts: all
become: true
become_method: sudo
become_user: root
tasks: tasks:
- name: get user - name: get user
become: true
become_method: sudo
become_user: root
# uses_shell: true # uses_shell: true
ansible.builtin.shell: whoami ansible.builtin.shell: whoami