Difference between revisions of "Ansible file:"

From wikieduonline
Jump to navigation Jump to search
 
Line 2: Line 2:
 
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html
 
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html
  
 +
 +
- name: Change file ownership, group and permissions
 +
  ansible.builtin.file:
 +
    path: /etc/foo.conf
 +
    owner: foo
 +
    group: foo
 +
    mode: '0644'
  
 
== See also ==
 
== See also ==

Latest revision as of 11:26, 18 October 2022

Advertising: