-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtree.yml
executable file
·42 lines (41 loc) · 1.33 KB
/
tree.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/local/bin/ansible-playbook --inventory=inventory.yaml
- name: '{{ ansible_name }} | tree.yml'
hosts: cloudctl
become_user: root
become: true
vars_files:
- 'vars/global.yml'
vars:
module: "tree"
ansible_name_module: "{{ ansible_name }} | {{ module }}"
tasks:
- name: '{{ ansible_name_module }} | file | Create Directory Structure'
file:
path: '{{ item }}'
state: directory
mode: '0755'
with_items:
- '{{ dir_platform }}/config/user-data'
- '{{ dir_platform }}/cluster/manifests'
- '{{ dir_platform }}/cluster/ignition'
- '{{ dir_platform }}/cluster/aux'
- '{{ dir_platform }}/cluster/aux/manifests'
- '{{ dir_platform }}/cluster/aux/openshift'
- '{{ dir_platform }}/cluster/config'
- '{{ dir_platform }}/cluster/'
- '{{ dir_platform }}/mirror'
- '{{ dir_platform }}/images'
- '{{ dir_platform }}/nginx'
- '{{ dir_platform }}/iac'
- file:
path: '{{ item }}'
state: directory
mode: '0644'
with_items:
- '{{ dir_secrets }}/registry/ssl'
- '{{ dir_secrets }}/registry/auth'
- '{{ dir_secrets }}/cluster'
- '{{ dir_secrets }}/docker'
- '{{ dir_secrets }}/ssh'
- '{{ dir_local_home }}/.kube'
- '{{ dir_tmp }}'