|
13 | 13 | - library
|
14 | 14 | - filter_plugins
|
15 | 15 |
|
16 |
| -- name: Inject templates |
| 16 | +- name: Inject files from roles |
17 | 17 | copy:
|
18 |
| - src: '{{ item }}' |
19 |
| - dest: '/etc/ansible-init/templates/{{ item | basename }}' |
| 18 | + src: '{{ item.src }}' |
| 19 | + dest: '/etc/ansible-init/{{ item.dest }}' |
20 | 20 | owner: root
|
21 | 21 | group: root
|
22 | 22 | mode: 0644
|
23 | 23 | loop:
|
24 |
| - - ../../resolv_conf/templates/resolv.conf.j2 |
25 |
| - - ../../stackhpc.os-manila-mount/templates/ceph.conf.j2 |
26 |
| - - ../../stackhpc.os-manila-mount/templates/ceph.keyring.j2 |
27 |
| - |
28 |
| -- name: Inject files |
29 |
| - copy: |
30 |
| - src: '{{ item }}' |
31 |
| - dest: '/etc/ansible-init/files/{{ item | basename }}' |
32 |
| - owner: root |
33 |
| - group: root |
34 |
| - mode: 0644 |
35 |
| - loop: |
36 |
| - - ../../resolv_conf/files/NetworkManager-dns-none.conf |
37 |
| - |
38 |
| -- name: Inject libraries |
39 |
| - copy: |
40 |
| - src: '{{ item }}' |
41 |
| - dest: '/etc/ansible-init/library/{{ item | basename }}' |
42 |
| - owner: root |
43 |
| - group: root |
44 |
| - mode: 0644 |
45 |
| - loop: |
46 |
| - - ../../stackhpc.os-manila-mount/library/os_manila_share.py |
47 |
| - |
48 |
| -- name: Inject filter_plugins |
49 |
| - copy: |
50 |
| - src: '{{ item }}' |
51 |
| - dest: '/etc/ansible-init/filter_plugins/{{ item | basename }}' |
52 |
| - owner: root |
53 |
| - group: root |
54 |
| - mode: 0644 |
55 |
| - loop: |
56 |
| - - ../../basic_users/filter_plugins/filter_keys.py |
| 24 | + - src: ../../resolv_conf/templates/resolv.conf.j2 |
| 25 | + dest: templates/resolv.conf.j2 |
| 26 | + - src: ../../stackhpc.os-manila-mount/templates/ceph.conf.j2 |
| 27 | + dest: templates/ceph.conf.j2 |
| 28 | + - src: ../../stackhpc.os-manila-mount/templates/ceph.keyring.j2 |
| 29 | + dest: templates/ceph.keyring.j2 |
| 30 | + - src: ../../resolv_conf/files/NetworkManager-dns-none.conf |
| 31 | + dest: files/NetworkManager-dns-none.conf |
| 32 | + - src: ../../stackhpc.os-manila-mount/library/os_manila_share.py |
| 33 | + dest: library/os_manila_share.py |
| 34 | + - src: ../../basic_users/filter_plugins/filter_keys.py |
| 35 | + dest: filter_plugins/filter_keys.py |
57 | 36 |
|
58 |
| -- name: Add filter_plugins ansible.cfg |
| 37 | +- name: Add filter_plugins to ansible.cfg |
59 | 38 | lineinfile:
|
60 | 39 | path: /etc/ansible-init/ansible.cfg
|
61 | 40 | line: "filter_plugins = /etc/ansible-init/filter_plugins"
|
|
64 | 43 | group: root
|
65 | 44 | mode: 0644
|
66 | 45 |
|
67 |
| -- name: Inject compute initialisation playbook |
| 46 | +- name: Add compute initialisation playbook |
68 | 47 | copy:
|
69 | 48 | src: compute-init.yml
|
70 | 49 | dest: /etc/ansible-init/playbooks/1-compute-init.yml
|
|
0 commit comments