Ansible Module file: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
=Overview= | =Overview= | ||
Manage file, directory and symlinks properties: create, set attributes, remove. | Manage file, directory and symlinks properties: create, set attributes, remove. | ||
=Examples= | |||
=Create a Directory= | =Create a Directory= |
Revision as of 06:56, 12 December 2019
External
Internal
Overview
Manage file, directory and symlinks properties: create, set attributes, remove.
Examples
Create a Directory
- name: create local storage mount point
file:
path: "{{ item }}"
state: directory
owner: root
with_items:
- "/mnt/ebs0"
when:
- inventory_hostname in groups['kube-node']