Have you included *become_method: sudo* ?
On Wednesday, 10 March 2021 at 04:58:09 UTC+5:30 Chris Bidwell wrote:
> Thanks for the update, however, it looks like it's not using the sudoer
> I'm wanting it to use. I have become: yes up top which I would think would
> run as the sudoer user I'm
Thanks for the update, however, it looks like it's not using the sudoer I'm
wanting it to use. I have become: yes up top which I would think would run
as the sudoer user I'm intending.
If I'm trying to run this playbook in my homedir which is where all my
others are initiated from and added
looks like you have missed " delegate_to: localhost" in first task.
On Thu, Mar 4, 2021 at 4:47 AM 'Chris Bidwell - NOAA Federal' via Ansible
Project wrote:
> Hi all,
>
> So I'm trying to write to a local file from my ansible server based off
> information I've gotten from my inventory hosts.
Hi all,
So I'm trying to write to a local file from my ansible server based off
information I've gotten from my inventory hosts. For some reason, it keeps
creating the file ON the inventory host instead of my ansible server. Here
is my playbook:
---
- hosts: ALL_LINUX
become: yes