On Tuesday, 28 August 2018 23.55.27 CEST Ramu wrote:
> Hi Experts,
> I have a playbook like
>
> ---
> hosts: test_group
> ansible_ssh_user: remoteuser
> become: true
> become_method: sudo
> tasks:
> - debug:
> msg: "Hello world"
> delegate_to: localhost
>
> However, I don't want to use become root as my current user is not in sudoer
>
> Is there a way to suppress become attribute while delegating the task?
Just use become false.
- debug:
msg: "Hello world"
delegate_to: localhost
become: false
--
Kai Stian Olstad
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/3790744.5z4AnEX1f5%40x1.
For more options, visit https://groups.google.com/d/optout.