Skip to content

Commit

Permalink
Default variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gaima8 committed Jan 8, 2021
1 parent 43d51cc commit 5dc5add
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
user_name: "{{ instance.user | default(tomcat_user) }}"
group_name: "{{ instance.group | default(tomcat_group) }}"

- name: set tomcat instance service to {{ instance.service_state }} and {{ instance.service_enabled }}
- name: set tomcat instance service to {{ instance.service_state | default('started') }} and {{ instance.service_enabled | default('yes') }}
service:
name: "{{ instance.name }}"
state: "{{ instance.service_state }}"
enabled: "{{ instance.service_enabled }}"
state: "{{ instance.service_state | default('started') }}"
enabled: "{{ instance.service_enabled | default('yes') }}"

- name: loop over wars
include: war.yml
Expand Down

0 comments on commit 5dc5add

Please sign in to comment.