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