Skip to content

Commit 03a5296

Browse files
authored
Merge pull request #21 from christianharke/harmonize-src-paths
Harmonize src paths of template and copy source files
2 parents d58c687 + 58ded92 commit 03a5296

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ process. To do so, see the following config example:
9393
...
9494
deploy_additional_templates:
9595
- {
96-
src: "templates/application.conf.j2",
96+
src: "application.conf.j2",
9797
dest: "{{ deploy_dir_config }}/application.conf"
9898
}
9999
- {
100-
src: "templates/logback.xml.j2",
100+
src: "logback.xml.j2",
101101
dest: "{{ deploy_dir_config }}/logback.xml",
102102
mode: "0600"
103103
}
@@ -109,7 +109,7 @@ process. To do so, see the following config example:
109109
...
110110
deploy_additional_copy:
111111
- {
112-
src: "/path/to/file",
112+
src: "file",
113113
dest: "{{ deploy_dir_app }}/file",
114114
mode: "0644"
115115
}

defaults/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ deploy_service_type: default
147147

148148
deploy_service_name: "{{ deploy_app_name | lower }}-{{ deploy_instance_nr }}"
149149

150-
deploy_service_upstart_template: "templates/service/upstart.conf.j2"
150+
deploy_service_upstart_template: "service/upstart.conf.j2"
151151

152152
deploy_service_upstart_location: "/etc/init/{{ deploy_app_name | lower }}-{{ deploy_instance_nr }}.conf"
153153

154-
deploy_service_systemd_template: "templates/service/systemd.service.j2"
154+
deploy_service_systemd_template: "service/systemd.service.j2"
155155

156156
deploy_service_systemd_location: "/etc/systemd/system/{{ deploy_app_name | lower }}-{{ deploy_instance_nr }}.service"
157157

tasks/additional.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
- name: "Additional - Deploy copy files"
3131
become: yes
3232
become_user: "{{ deploy_app_user }}"
33-
template:
33+
copy:
3434
src: "{{ item.src }}"
3535
dest: "{{ item.dest }}"
3636
owner: "{{ item.user | default(deploy_app_user) }}"

tests/playbook/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
deploy_app_user: "bot-user"
1111
deploy_app_group: "bot-group"
1212
deploy_additional_templates:
13-
- { src: "templates/application.conf.j2", dest: "{{ deploy_dir_config }}/application.conf" }
14-
- { src: "templates/logback.xml.j2", dest: "{{ deploy_dir_config }}/logback.xml", mode: 600 }
13+
- { src: "application.conf.j2", dest: "{{ deploy_dir_config }}/application.conf" }
14+
- { src: "logback.xml.j2", dest: "{{ deploy_dir_config }}/logback.xml", mode: 600 }
1515
roles:
1616
- { role: ../../../ansible-java-deployment }

0 commit comments

Comments
 (0)