[Ansible] JFrog Platform 7.23.3 (#148)

This commit is contained in:
Ram Mohan Rao Chukka
2021-08-05 15:22:21 +05:30
committed by GitHub
parent 60b0620387
commit 1976ab309c
25 changed files with 444 additions and 130 deletions

View File

@@ -2,9 +2,6 @@
- debug:
msg: "Performing installation of Xray version : {{ xray_version }}"
- debug:
msg: "ansible_os_family: {{ ansible_os_family }}"
- name: Install expect dependency
become: yes
yum:
@@ -50,8 +47,8 @@
url: "{{ xray_tar }}"
timeout: "{{ xray_download_timeout }}"
dest: "{{ jfrog_home_directory }}"
register: downloadxray
until: downloadxray is succeeded
register: download_xray
until: download_xray is succeeded
retries: 3
when: not xray_tar_check.stat.exists
@@ -64,7 +61,7 @@
owner: "{{ xray_user }}"
group: "{{ xray_group }}"
creates: "{{ xray_untar_home }}"
when: downloadxray is succeeded
when: download_xray is succeeded
- name: Check if app directory exists
become: yes
@@ -135,6 +132,13 @@
dest: "{{ xray_home }}/app/bin/rabbitmq/rabbitmq.conf"
notify: restart xray
- name: Configure installer info
become: yes
template:
src: installer-info.json.j2
dest: "{{ xray_home }}/var/etc/info/installer-info.json"
notify: restart xray
- name: Check if systemyaml exists
become: yes
stat:
@@ -152,13 +156,6 @@
- xray_systemyaml_override or (not systemyaml.stat.exists)
notify: restart xray
- name: Configure installer info
become: yes
template:
src: installer-info.json.j2
dest: "{{ xray_home }}/var/etc/info/installer-info.json"
notify: restart xray
- name: Ensure permissions are correct
become: yes
file:

View File

@@ -14,8 +14,8 @@
url: "{{ xray_tar }}"
timeout: "{{ xray_download_timeout }}"
dest: "{{ jfrog_home_directory }}"
register: downloadxray
until: downloadxray is succeeded
register: download_xray
until: download_xray is succeeded
retries: 3
when: not xray_tar_check.stat.exists
@@ -28,38 +28,38 @@
owner: "{{ xray_user }}"
group: "{{ xray_group }}"
creates: "{{ xray_untar_home }}"
when: downloadxray is succeeded
when: download_xray is succeeded
- name: stop xray
become: yes
systemd:
name: "{{ xray_daemon }}"
state: stopped
when: downloadxray.changed
when: download_xray.changed
- name: Delete xray app
become: yes
file:
path: "{{ xray_home }}/app"
state: absent
when: downloadxray.changed
when: download_xray.changed
- name: Copy new app to xray app
become: yes
command: "cp -r {{ xray_untar_home }}/app/. {{ xray_home }}/app"
when: downloadxray.changed
when: download_xray.changed
- name: Upgrade rabbitmq
import_tasks: rabbitmq/upgrade/RedHat.yml
when:
- ansible_os_family == 'RedHat'
- downloadxray.changed
- download_xray.changed
- name: Upgrade rabbitmq
import_tasks: rabbitmq/upgrade/Debian.yml
when:
- ansible_os_family == 'Debian'
- downloadxray.changed
- download_xray.changed
- name: Check if install.sh wrapper script exist
become: yes
@@ -82,7 +82,7 @@
YQ_PATH: "{{ xray_thirdparty_path }}/yq"
when:
- install_wrapper_script.stat.exists
- downloadxray.changed
- download_xray.changed
- name: Configure rabbitmq config
become: yes
@@ -90,7 +90,7 @@
src: "rabbitmq.conf.j2"
dest: "{{ xray_home }}/app/bin/rabbitmq/rabbitmq.conf"
when:
- downloadxray.changed
- download_xray.changed
notify: restart xray
- name: Check if systemyaml exists

View File

@@ -1,6 +1,6 @@
---
# platform collection version
platform_collection_version: 7.21.12
platform_collection_version: 7.23.3
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy