Skip to content

Commit

Permalink
Merge pull request silpion#35 in ISAR/ansible-tomcat from feature/ISA…
Browse files Browse the repository at this point in the history
…R-305-ansible-tomcat-update-ansible-2.3 to next

* commit 'a18be2e6f0ef5788d80739f05ff413908772a6fb':
  fix ansible 2.3 deprications
  • Loading branch information
Anja Siek committed May 29, 2017
2 parents 9230060 + a18be2e commit d2cb8f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tasks/8.5-acls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- name: Update installation executables access controls
tags: tomcat
become: true
when: '{{ ansible_local.util.init.system != "systemd" }}'
when: ((((ansible_local|default([])).util|default([])).init|default([])).system|default('')) != "systemd" }}'
with_items:
- catalina.sh
- setclasspath.sh
Expand Down
20 changes: 10 additions & 10 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
- name: Detect version upgrade
tags: tomcat
when:
- ansible_local.tomcat.general.version is defined
- ansible_local.tomcat.general.version != tomcat_version
- (((ansible_local|default([])).tomcat|default([])).general|default([])).version is defined
- (((ansible_local|default([])).tomcat|default([])).general|default([])).version != tomcat_version
set_fact:
tomcat_fact_upgrade_installation: true

Expand All @@ -51,7 +51,7 @@
# Manage system services
- name: Configure service management
tags: tomcat
when: ansible_local.util.init.system is defined
when: (((ansible_local|default([])).util|default([])).init|default([])).system is defined
include_vars: "service/{{ ansible_local.util.init.system }}.yml"

- name: Include assets persistency tasks
Expand Down Expand Up @@ -126,8 +126,8 @@
- name: Include file system access controls for tomcat >= 8.5
tags: tomcat
when:
- '{{ tomcat_version|version_compare("8.5", ">=") }}'
- '{{ tomcat_fact_is_not_initial_check_mode }}'
- tomcat_version|version_compare("8.5", ">=")
- tomcat_fact_is_not_initial_check_mode
with_items:
- '{{ tomcat_env_catalina_home }}/bin'
- '{{ tomcat_env_catalina_home }}/lib'
Expand All @@ -153,7 +153,7 @@
tags: tomcat
become: true
register: tomcat_registered_conf_files
always_run: true
check_mode: false
changed_when: false
when: tomcat_fact_is_not_initial_check_mode
# failed_when: "{{ false if lib_fact_check_mode else omit }}"
Expand Down Expand Up @@ -209,8 +209,8 @@
tags: tomcat
become: true
when:
- ansible_local.util.init.system is defined
- ansible_local.util.init.system == 'systemd'
- (((ansible_local|default([])).util|default([])).init|default([])).system is defined
- (((ansible_local|default([])).util|default([])).init|default([])).system == 'systemd'
with_items: "{{ tomcat_instances }}"
register: tomcat_registered_install_instance_environment_files
template:
Expand Down Expand Up @@ -250,8 +250,8 @@
tags: tomcat
when:
- tomcat_registered_install_tomcat_service.changed
- ansible_local.util.init.system is defined
- ansible_local.util.init.system == 'systemd'
- (((ansible_local|default([])).util|default([])).init|default([])).system is defined
- (((ansible_local|default([])).util|default([])).init|default([])).system == 'systemd'
become: true
failed_when: false
changed_when: false
Expand Down

0 comments on commit d2cb8f1

Please sign in to comment.