Ansible Module file
Jump to navigation
Jump to search
External
Internal
Overview
Manage file, directory and symlinks properties: create, set attributes, remove.
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']