--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cf2cb550-8bc1-43df-8175-c6cc4322b391%40googlegroups.com.
Hi Minal
Could do with more detail, really, as you don’t say what method you’re using. However the “mode” option with the “file” module would accommodate this. See eg and link below:
- name: Create a directory if it does not exist
file:
path: /etc/some_directory
state: directory
mode: '0755'
https://docs.ansible.com/ansible/latest/modules/file_module.html#file-module
Regards
Phil
--