Skip to content

Commit

Permalink
Merge pull request #20 from idealista/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jdvr authored Jan 15, 2018
2 parents b743ce7 + bf2de4b commit 5bf40a0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch

## [Unreleased](https://github.com/idealista/tomcat-role/tree/develop)

## [1.3.1](https://github.com/idealista/tomcat-role/tree/1.3.1)

### Fixed
- *[#17](https://github.com/idealista/tomcat-role/issues/17) Fix war user and group after download* @jdvr

## [1.3.0](https://github.com/idealista/tomcat-role/tree/1.3.0)

### Added
Expand Down
12 changes: 12 additions & 0 deletions tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,22 @@
notify: restart tomcat
when: tomcat_download_from_maven_wars

- name: Tomcat | Change maven downloaded war owner
file:
path: "{{ tomcat_webapps_path }}/{{ item.name }}"
owner: "{{ tomcat_user }}"
group: "{{ tomcat_group }}"
with_items: "{{ tomcat_war_to_deploy_from_maven }}"
when: tomcat_download_from_maven_wars

- name: Tomcat | Download wars on webapps
get_url:
url: "{{ item.url }}"
dest: "{{ tomcat_webapps_path }}/{{ item.name }}"
mode: 0755
validate_certs: no
owner: "{{ tomcat_user }}"
group: "{{ tomcat_group }}"
with_items: "{{ tomcat_war_to_deploy_urls }}"
when: tomcat_download_wars

Expand All @@ -39,5 +49,7 @@
src: "{{ item }}"
dest: "{{ tomcat_webapps_path }}"
mode: 0755
owner: "{{ tomcat_user }}"
group: "{{ tomcat_group }}"
with_items: "{{ tomcat_war_to_deploy_path }}"
when: tomcat_local_wars

0 comments on commit 5bf40a0

Please sign in to comment.