Re: [ansible-project] Ansible "file" module and attributes in 2.3.1.0

2017-07-23 Thread Dan Linder
Thanks Kai, hadn't thought about using the attr_flags field - I'll give it a shot when I get back to that issue. Dan On Sat, Jul 22, 2017 at 9:34 AM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 21.07.2017 17:34, Dan Linder wrote: > >> I setup a playbook with this play: >> >>

Re: [ansible-project] Ansible "file" module and attributes in 2.3.1.0

2017-07-22 Thread Kai Stian Olstad
On 21.07.2017 17:34, Dan Linder wrote: I setup a playbook with this play: - name: "Remove immutable flag" file: path: /etc/security/access.conf attributes: "-i" The documentation isn't clear on what "attributes" can be but the file module call chattr with the "=" precursor before the

[ansible-project] Ansible "file" module and attributes in 2.3.1.0

2017-07-21 Thread Dan Linder
I've got a set of systems that have a configuration file with the "immutable" flag set on them by a previous setup process. The "lsattr /etc/security/access.conf" on a RHEL 6 system shows the "i" flag set. Manually doing a "chattr -i /etc/security/access.conf" removes the flag, but I'd like