Skip to content

Commit

Permalink
Migrate to include_tasks, increased min_ansible_version to 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Richter committed Nov 30, 2018
1 parent 260df3e commit 430c2c1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
# run against latest version
- ANSIBLE_VERSION=latest
# run against minimal required version
- ANSIBLE_VERSION=2.0.*
- ANSIBLE_VERSION=2.4.*

# Use the new container infrastructure
sudo: false
Expand Down Expand Up @@ -35,4 +35,4 @@ script:
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check

notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
webhooks: https://galaxy.ansible.com/api/v1/notifications/
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- name: restart aem
include: restart_aem.yml
include_tasks: restart_aem.yml
4 changes: 2 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ galaxy_info:
company: pro!vision
issue_tracker_url: https://wcm-io.atlassian.net
license: Apache
min_ansible_version: 2.0
min_ansible_version: 2.4

platforms:
- name: Ubuntu
Expand All @@ -27,4 +27,4 @@ galaxy_info:
- java
- wcmio

dependencies: []
dependencies: []
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
- include: start_aem.yml
- include_tasks: start_aem.yml
when: aem_service_state == 'started'

- include: stop_aem.yml
- include_tasks: stop_aem.yml
when: aem_service_state == 'stopped'

- include: restart_aem.yml
when: aem_service_state == 'restarted'
- include_tasks: restart_aem.yml
when: aem_service_state == 'restarted'
4 changes: 2 additions & 2 deletions tasks/restart_aem.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- include: stop_aem.yml
- include: start_aem.yml
- include_tasks: stop_aem.yml
- include_tasks: start_aem.yml

0 comments on commit 430c2c1

Please sign in to comment.