Skip to content

Commit c5ff527

Browse files
chukkabbaassssiiee
andauthored
ansible] JFrog Platform 10.16.4 release (#360)
* [ansible/artifactory] JA-7492- Fixed a security issue whereby, interacting with specially c… (#356) * JA-7492- Fixed a security issue whereby, interacting with specially crafted URLs could lead to exposure of sensitive information. * Version 7.71.8 of Artifactory * Determine the running_version and compare to desired artifactory_version * compare stdout wihtout newline. changed_when: false for read operation. * [ansible] JFrog Platform 10.16.4 release --------- Co-authored-by: Bas <bas.meijer@enexis.nl>
1 parent b25114f commit c5ff527

File tree

10 files changed

+26
-11
lines changed

10 files changed

+26
-11
lines changed

Ansible/ansible_collections/jfrog/platform/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# JFrog Platform Ansible Collection Changelog
22
All changes to this collection will be documented in this file.
33

4+
## [10.16.4] - Dec 21, 2023
5+
* Artifactory - Upgrade version when tar is already present [GH-356](https://github.com/jfrog/JFrog-Cloud-Installers/pull/356)
6+
* Product Updates/fixes
7+
48
## [10.16.3] - Dec 6, 2023
59
* Added How to avoid IPv6 binding in Readme [GH-349](https://github.com/jfrog/JFrog-Cloud-Installers/pull/349)
610
* Product Updates/fixes

Ansible/ansible_collections/jfrog/platform/galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: "jfrog"
99
name: "platform"
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: "10.16.3"
12+
version: "10.16.4"
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: "README.md"

Ansible/ansible_collections/jfrog/platform/roles/artifactory/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Defaults file for artifactory
22

33
# The version of artifactory to install
4-
artifactory_version: 7.71.5
4+
artifactory_version: 7.71.9
55

66
# Set this to true when SSL is enabled (to use artifactory_nginx_ssl role), default to false (implies artifactory uses artifactory_nginx role )
77
artifactory_nginx_ssl_enabled: false

Ansible/ansible_collections/jfrog/platform/roles/artifactory/tasks/upgrade.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,28 @@
5656
path: "{{ jfrog_home_directory }}"
5757
state: directory
5858

59+
- name: Check artifactory version
60+
ansible.builtin.shell: |
61+
set -o pipefail;
62+
grep artifactory.product.version "{{ artifactory_home }}/app/artifactory.product.version.properties" |cut -d= -f2
63+
register: check_version_cmd
64+
changed_when: false
65+
66+
- name: Set running_version
67+
ansible.builtin.set_fact:
68+
running_version: "{{ check_version_cmd.stdout }}"
69+
5970
- name: Delete artifactory app directory
6071
become: true
6172
ansible.builtin.file:
6273
path: "{{ artifactory_home }}/app"
6374
state: absent
64-
when: (download_artifactory.changed) or (unarchived_artifactory.changed)
75+
when: running_version != artifactory_version
6576

6677
- name: Copy new app to artifactory app
6778
become: true
6879
ansible.builtin.command: "cp -r {{ artifactory_untar_home }}/app/. {{ artifactory_home }}/app"
69-
when: (download_artifactory.changed) or (unarchived_artifactory.changed)
80+
when: running_version != artifactory_version
7081
notify: Restart artifactory
7182

7283
- name: Configure artifactory license(s)
@@ -168,4 +179,4 @@
168179
delay: 5
169180
when:
170181
- not ansible_check_mode
171-
- artifactory_start_service | bool
182+
- artifactory_start_service | bool
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# platform collection version
2-
platform_collection_version: 10.16.3
2+
platform_collection_version: 10.16.4
33

44
# indicates where this collection was downloaded from (galaxy, automation_hub, standalone)
55
ansible_marketplace: galaxy

Ansible/ansible_collections/jfrog/platform/roles/distribution/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# defaults file for distribution
22

33
# The version of distribution to install
4-
distribution_version: 2.20.3
4+
distribution_version: 2.21.3
55

66
# whether to enable HA
77
distribution_ha_enabled: false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# platform collection version
2-
platform_collection_version: 10.16.3
2+
platform_collection_version: 10.16.4
33

44
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
55
ansible_marketplace: galaxy
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# platform collection version
2-
platform_collection_version: 10.16.3
2+
platform_collection_version: 10.16.4
33

44
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
55
ansible_marketplace: galaxy

Ansible/ansible_collections/jfrog/platform/roles/xray/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Defaults file for xray
22

33
# The version of xray to install
4-
xray_version: 3.86.4
4+
xray_version: 3.86.9
55

66
# Whether to enable HA
77
xray_ha_enabled: false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# platform collection version
2-
platform_collection_version: 10.16.3
2+
platform_collection_version: 10.16.4
33

44
# indicates were this collection was downlaoded from (galaxy, automation_hub, standalone)
55
ansible_marketplace: galaxy

0 commit comments

Comments
 (0)