Please ignore. User Error, I was in the wrong directory

On Monday, August 23, 2021 at 6:29:16 PM UTC-4 CaptainBrewing wrote:

> I have the following play to create a new directory
>
>
> - name: Create DataDog Conf.d directory for Proprietary  Apps
>   file:
>     path: "/etc/datadog-agent/conf.d/{{ applicaton_name }}.d"
>     state: directory
>     mode:* 0755*
>     owner: "dd-agent"
>     group: "dd-agent"
>
>
> No matter what I put in there for the mode the directory comes back "644" 
> as you can see above I have 0755
>
> TASK [fix_template_list : Create DataDog Conf.d directory for Proprietary 
> Apps] 
> **********************************************************************************************************************************
> ok: [127.0.0.1] => {"changed": false, "gid": 994, "group": "dd-agent", 
> "mode": "*0644*", "owner": "dd-agent", "path": "/
> *etc/datadog-agent/conf.d/application_name.d"*, "secontext": 
> "unconfined_u:object_r:etc_t:s0", "size": 23, "state": "directory", "uid": 
> 997}
>
>
> I am using "Become" or Sudo
>
> Ansible has permissions to run this as it actually puts it BACK to 644 if 
> I just use bash to give the directory 755. Ansible puts it back to 644
>
> I am using Ansible 2.9.24 and I am running this locally
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dd904515-e9fa-4cca-a95a-20eb1466f224n%40googlegroups.com.

Reply via email to