Difference between revisions of "Ansible file:"
Jump to navigation
Jump to search
(Created page with " == See also == * {{Ansible}}") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | * 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 == | ||
* {{Ansible}} | * {{Ansible}} | ||
+ | |||
+ | [[Category:Ansible]] |
Latest revision as of 11:26, 18 October 2022
- name: Change file ownership, group and permissions ansible.builtin.file: path: /etc/foo.conf owner: foo group: foo mode: '0644'
See also[edit]
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: