mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 03:06:57 -06:00
Added systemd check to verify it's already been installed.
This commit is contained in:
Binary file not shown.
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user