<<Back to Ansible Main Page
Creating Directories on Linux Using Ansible File Module
With Item Command- name: create dirs
become: True
file:
path: "{{ item }}"
state: directory
owner: oragrid
group: oinstall
mode: 0755
with_items:
- "{{ oracle_gh }}"
OR
Without Item Command
- name: create dirs
become: True
file:
path: /u01/oragrid/12.2.0.1/grid
state: directory
owner: oragrid
group: oinstall
mode: 0755
Comments
Post a Comment