mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 04:06:55 -06:00
[ansible] JFrog Platform 10.6.0 release (#216)
This commit is contained in:
committed by
GitHub
parent
d6669bdda2
commit
5097e35075
@@ -1,7 +1,7 @@
|
||||
# defaults file for artifactory
|
||||
|
||||
# The version of artifactory to install
|
||||
artifactory_version: 7.37.15
|
||||
artifactory_version: 7.38.7
|
||||
|
||||
# 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
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Configure SELinux context
|
||||
become: yes
|
||||
sefcontext:
|
||||
target: "{{ jfrog_home_directory }}/artifactory/app/bin(/.*)?"
|
||||
setype: bin_t
|
||||
state: present
|
||||
when: ansible_selinux.status == 'enabled'
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Restore SELinux content
|
||||
become: yes
|
||||
ansible.builtin.command: restorecon -R -v "{{ jfrog_home_directory }}/artifactory/app/bin"
|
||||
when: ansible_distribution == 'RedHat'
|
||||
changed_when: false
|
||||
@@ -5,9 +5,4 @@
|
||||
state: present
|
||||
|
||||
- name: Configure SELinux context
|
||||
become: yes
|
||||
sefcontext:
|
||||
target: "{{ jfrog_home_directory }}/artifactory/app/bin(/.*)?"
|
||||
setype: bin_t
|
||||
state: present
|
||||
when: ansible_selinux.status == 'enabled'
|
||||
include_tasks: shared/selinux_configure_context.yml
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
group: "{{ artifactory_group }}"
|
||||
creates: "{{ artifactory_untar_home }}"
|
||||
remote_src: true
|
||||
when: download_artifactory is succeeded
|
||||
when: (download_artifactory is succeeded) and (not ansible_check_mode)
|
||||
|
||||
- name: Check if app directory exists
|
||||
become: yes
|
||||
@@ -158,10 +158,18 @@
|
||||
- artifactory_licenses | length > 0
|
||||
notify: restart artifactory
|
||||
|
||||
- name: Check if included database driver is the correct version
|
||||
become: yes
|
||||
stat:
|
||||
path: "{{ artifactory_home }}/app/artifactory/tomcat/lib/postgresql-{{ postgres_driver_version }}.jar"
|
||||
register: included_database_driver
|
||||
|
||||
- name: Check if database driver exists
|
||||
become: yes
|
||||
stat:
|
||||
path: "{{ artifactory_home }}/app/artifactory/tomcat/lib/jf_postgresql-{{ postgres_driver_version }}.jar"
|
||||
when:
|
||||
- not included_database_driver.stat.exists
|
||||
register: database_driver
|
||||
|
||||
- name: Download database driver
|
||||
@@ -174,14 +182,11 @@
|
||||
when:
|
||||
- postgres_driver_download_url is defined
|
||||
- not database_driver.stat.exists
|
||||
- not included_database_driver.stat.exists
|
||||
notify: restart artifactory
|
||||
|
||||
- name: Run restore context to reload selinux
|
||||
become: yes
|
||||
shell: |
|
||||
restorecon -R -v "{{ jfrog_home_directory }}/artifactory/app/bin"
|
||||
when: ansible_distribution == 'RedHat'
|
||||
changed_when: false
|
||||
- name: Restore SELinux content
|
||||
include_tasks: shared/selinux_restore_context.yml
|
||||
|
||||
- name: Create artifactory service
|
||||
become: yes
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- name: Configure SELinux context
|
||||
include_tasks: shared/selinux_configure_context.yml
|
||||
|
||||
- name: Check if artifactory tar already exists
|
||||
become: yes
|
||||
stat:
|
||||
@@ -24,7 +27,7 @@
|
||||
owner: "{{ artifactory_user }}"
|
||||
group: "{{ artifactory_group }}"
|
||||
creates: "{{ artifactory_untar_home }}"
|
||||
when: download_artifactory is succeeded
|
||||
when: (download_artifactory is succeeded) and (not ansible_check_mode)
|
||||
|
||||
- name: Stop artifactory
|
||||
meta: flush_handlers
|
||||
@@ -47,6 +50,7 @@
|
||||
become: yes
|
||||
command: "cp -r {{ artifactory_untar_home }}/app/. {{ artifactory_home }}/app"
|
||||
when: download_artifactory.changed
|
||||
notify: restart artifactory
|
||||
|
||||
- name: Configure artifactory license(s)
|
||||
become: yes
|
||||
@@ -114,6 +118,9 @@
|
||||
- artifactory_systemyaml_override or (not systemyaml.stat.exists)
|
||||
notify: restart artifactory
|
||||
|
||||
- name: Restore SELinux content
|
||||
include_tasks: shared/selinux_restore_context.yml
|
||||
|
||||
- name: Ensure permissions are correct
|
||||
include_tasks: shared/ensure_permissions_correct.yml
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# platform collection version
|
||||
platform_collection_version: 10.5.2
|
||||
platform_collection_version: 10.6.0
|
||||
|
||||
# indicates where this collection was downloaded from (galaxy, automation_hub, standalone)
|
||||
ansible_marketplace: galaxy
|
||||
|
||||
Reference in New Issue
Block a user