Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Ansible 2.9 #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ springboot_java_install: true

# Mandatory variable : path to springboot jar to deploy.
# Either specify a file or a url depending on if you want to copy you app or download it.
springboot_src_file:
springboot_src_url: None
springboot_src_file: ''
springboot_src_url: ''

# Mandatory variable : spring boot application name
springboot_application_name:
Expand Down
2 changes: 1 addition & 1 deletion tasks/service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: "Check if use systemd"
set_fact: use_system_d={{(ansible_distribution == 'Debian' and ansible_distribution_version | version_compare('8', '>=')) or (ansible_distribution in ['RedHat','CentOS'] and ansible_distribution_version | version_compare('7', '>=')) or (ansible_distribution == 'Ubuntu' and ansible_distribution_version | version_compare('15', '>=')) }}
set_fact: use_system_d={{(ansible_distribution == 'Debian' and ansible_distribution_version is version('8', '>=')) or (ansible_distribution in ['RedHat','CentOS'] and ansible_distribution_version is version('7', '>=')) or (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('15', '>=')) }}

- name: "Ensure systemd system directory is present (for Ubuntu)"
file:
Expand Down