-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtree.yml
executable file
·54 lines (52 loc) · 1.73 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
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/local/bin/ansible-playbook
- name: '{{ name_vendor }} | Koffer | tree.yml'
hosts: cloudctl
vars_files:
- 'vars/global.yml'
# - 'vars/git.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 }}/terraform'
- '{{ dir_platform }}/ansible'
- '{{ dir_platform }}/mirror'
- '{{ dir_platform }}/images'
- '{{ dir_platform }}/nginx'
- '{{ dir_tmp }}'
- file:
path: '{{ item }}'
state: directory
mode: '0644'
with_items:
- '{{ dir_platform }}/secrets/registry/ssl'
- '{{ dir_platform }}/secrets/registry/auth'
- '{{ dir_platform }}/secrets/cluster'
- '{{ dir_platform }}/secrets/docker'
- '{{ dir_platform }}/secrets/aws'
- '{{ dir_platform }}/secrets/ssh'
- '{{ dir_secrets }}/aws'
- '{{ local_home }}/.aws'
- name: '{{ ansible_name_module }} | file | Create Directory ~/.aws'
delegate_to: konductor
file:
path: '{{ item }}'
state: directory
mode: '0644'
with_items:
- '{{ local_home }}/.aws'
- '{{ local_home }}/.kube'