On Thursday, August 20, 2020 at 9:34:20 PM UTC+2 Martey Dodoo wrote: > Hi everyone, > > I'm having some issues using the "mode" parameter on the file module > <https://docs.ansible.com/ansible/latest/modules/file_module.html#parameter-mode> > > to change ownership of an existing directory without modifying its > permissions. For example: > > > - name: use preserve mode > > file: > > path=/tmp/test > > owner=www-data > > mode=preserve > > state=directory > > become: true > > Based on the documentation, I would assume that this would "preserve" the > directory's existing permissions while changing its owner. Instead, it > fails with "mode must be in octal or symbolic form" / "bad symbolic > permission for mode: preserve". > ... >
have a look at this comment https://github.com/ansible/ansible/issues/71377#issuecomment-677892112 according to that comment, it is not intended to work with file. kind regards, markus -- 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/34e9bd9d-afa4-431f-8eee-e4de61070ce8n%40googlegroups.com.
