[ansible] JFrog Platform 10.3.0 release (#200)

This commit is contained in:
Ram Mohan Rao Chukka
2022-02-08 15:25:01 +05:30
committed by GitHub
parent 616769170d
commit 519737ac06
12 changed files with 28 additions and 32 deletions

View File

@@ -1,7 +1,7 @@
# defaults file for artifactory
# The version of artifactory to install
artifactory_version: 7.31.13
artifactory_version: 7.33.9
# Set this to true when SSL is enabled (to use artifactory_nginx_ssl role), default to false (implies artifactory uses artifactory_nginx role )
artifactory_nginx_ssl_enabled: false

View File

@@ -0,0 +1,12 @@
- name: Ensure permissions are correct
become: yes
block:
- name: Ensure user ownership
ansible.builtin.command: find {{ jfrog_home_directory }} ! -user {{ artifactory_user }} -print -exec chown {{ artifactory_user }} {} \;
register: user_ownerships
changed_when: user_ownerships.stdout_lines | length > 0
- name: Ensure group ownership
ansible.builtin.command: find {{ jfrog_home_directory }} ! -group {{ artifactory_group }} -print -exec chgrp {{ artifactory_group }} {} \;
register: group_ownerships
changed_when: user_ownerships.stdout_lines | length > 0

View File

@@ -190,12 +190,7 @@
creates: "{{ artifactory_service_file }}"
- name: Ensure permissions are correct
become: yes
file:
path: "{{ jfrog_home_directory }}"
group: "{{ artifactory_group }}"
owner: "{{ artifactory_user }}"
recurse: yes
include_tasks: shared/ensure_permissions_correct.yml
- name: Restart artifactory
meta: flush_handlers

View File

@@ -48,18 +48,7 @@
command: "cp -r {{ artifactory_untar_home }}/app/. {{ artifactory_home }}/app"
when: download_artifactory.changed
- name: Configure single license
become: yes
template:
src: artifactory.lic.j2
dest: "{{ artifactory_home }}/var/etc/artifactory/artifactory.lic"
mode: 0644
when:
- artifactory_single_license is defined
- artifactory_single_license | length > 0
notify: restart artifactory
- name: Configure HA licenses
- name: Configure artifactory license(s)
become: yes
template:
src: artifactory.cluster.license.j2
@@ -126,12 +115,7 @@
notify: restart artifactory
- name: Ensure permissions are correct
become: yes
file:
path: "{{ jfrog_home_directory }}"
group: "{{ artifactory_group }}"
owner: "{{ artifactory_user }}"
recurse: yes
include_tasks: shared/ensure_permissions_correct.yml
- name: Restart artifactory
meta: flush_handlers

View File

@@ -1,5 +1,5 @@
# platform collection version
platform_collection_version: 10.2.0
platform_collection_version: 10.3.0
# indicates where this collection was downloaded from (galaxy, automation_hub, standalone)
ansible_marketplace: galaxy