Added systemd check to verify it's already been installed.

This commit is contained in:
Serienmorder
2020-10-15 08:41:29 -07:00
parent d00d7a05c1
commit fef7f751c3
2 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
- name: Rectify Legacy Installation Block
block:
- name: Check to see if artifactory has a service
systemd:
state: stopped
name: artifactory
- name: Check symlink method
stat:
path: /opt/jfrog/artifactory/app
@@ -20,6 +24,10 @@
include_tasks: "legacy_migration.yml"
when: (not newMethod.stat.islnk) and newMethod.stat.exists
rescue:
- name: Check to see if artifactory has a service
systemd:
state: stopped
name: artifactory
- name: Setup temporary untar home (assuming version is set var for version)
set_fact:
temp_untar_home: "{{ jfrog_home_directory }}/artifactory-{{ artifactory_flavour }}-{{ artifactory_version }}"