Last active
October 30, 2020 15:35
-
-
Save robinsg/345d8d58f440e2ee3b99a457aa025c7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- - - | |
# defaults file for ../roles/aix_directories | |
group: "appgrp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- - - | |
# tasks file for ../roles/aix_directories | |
- name: Create directories and set permissions | |
file: | |
path: "{{ item.value.dir }}" | |
state: directory | |
owner: "{{ item.value.owner }}" | |
group: "{{ group }}" | |
mode: "u=rwx,g=rwx,o=rx" | |
recurse: yes | |
with_dict: "{{ lpar_dirs }}" | |
tags: | |
- aix_dirs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- - - | |
# vars file for ../roles/aix_directories | |
lpar_dirs: | |
database: | |
dir: /opt/db | |
owner: app01 | |
app: | |
dir: /opt/app | |
owner: app02 | |
backups: | |
dir: /opt/backups | |
owner: app03 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment