Is it possible to run "*sudo su -*" in ansible with non-root user ``` - name: test hosts: example.com gather_facts: false any_errors_fatal: true become: true become_exe: "sudo su - " become_method: su remote_user: test_user tasks: - name: check the user after sudo shell: whoami register: whoami
- debug: msg: "{{ whoami }}" Regards, Jatinder Jawanda -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7a0ca126-8af2-4cb0-acc1-2753c452bcbbn%40googlegroups.com.