creating directories and using loops
This commit is contained in:
parent
4735cfde6b
commit
2d09e71f87
|
@ -17,28 +17,24 @@
|
||||||
state: directory
|
state: directory
|
||||||
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}"
|
||||||
|
|
||||||
|
- name: Create folders
|
||||||
|
delegate_to: localhost
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}"
|
||||||
|
loop:
|
||||||
|
- account
|
||||||
|
- admin
|
||||||
|
- email
|
||||||
|
- login
|
||||||
|
|
||||||
- name: Create properties for account
|
- name: Create properties for account
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
template:
|
template:
|
||||||
src: "account/theme.properties.j2"
|
src: "{{ item }}/theme.properties.j2"
|
||||||
dest: "{{ tmpdir }}/src/themes/{{ theme }}/account/theme.properties"
|
dest: "{{ tmpdir }}/src/themes/{{ theme }}/{{ item }}/theme.properties"
|
||||||
|
loop:
|
||||||
- name: Create properties for admin
|
- account
|
||||||
delegate_to: localhost
|
- admin
|
||||||
template:
|
- email
|
||||||
src: "admin/theme.properties.j2"
|
- login
|
||||||
dest: "{{ tmpdir }}/src/themes/{{ theme }}/admin/theme.properties"
|
|
||||||
|
|
||||||
- name: Create properties for email
|
|
||||||
delegate_to: localhost
|
|
||||||
template:
|
|
||||||
src: "email/theme.properties.j2"
|
|
||||||
dest: "{{ tmpdir }}/src/themes/{{ theme }}/email/theme.properties"
|
|
||||||
|
|
||||||
- name: Create properties for login
|
|
||||||
delegate_to: localhost
|
|
||||||
template:
|
|
||||||
src: "login/theme.properties.j2"
|
|
||||||
dest: "{{ tmpdir }}/src/themes/{{ theme }}/login/theme.properties"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue