directory.yml 637 Bytes
---
- hosts: new-host
  become: true
  tasks:
       - name: Create WDCHAT Directory Structure
         file:
             path: "{{ item.path }}"
             owner: "{{ item.owner }}"
             group: "{{ item.owner }}"
             state: directory
         with_items:
             - { owner: root,    path: /opt/stack/dma/conf }
             - { owner: root,    path: /home/chroot/wdftp }
             - { owner: root, path: /data }
             - { owner: wildfly, path: /upload }
             - { owner: wildfly, path: /archive }
             - { owner: wildfly, path: /dmaimg }
             - { owner: wildfly, path: /dmatmp }