Files
JFrog-Cloud-Installers/Ansible/ansible_collections/jfrog/platform/roles/artifactory
ZwareBear 6c7df3cb26 [Ansible/Artifactory] -Upgrade play to stop artifactory service (#256)
* Ansible/Artifactory - Upgrade play to stop service

When running the upgrade play the stop artifactory is never notified.
So running flush_handlers never actually gets hit.

Add notify to unarchive task, with the idea being if you're
unarchiving a new version this means that host will be taking
an update.

zachary.wayer@garmin.com

* Ansible/Artifactory - Fix notify Indention

Moving the notify clause to be even with the when statment.
2023-01-30 11:41:53 +05:30
..
2021-05-10 13:21:22 +05:30

artifactory

The artifactory role installs the Artifactory Pro software onto the host. Per the Vars below, it will configure a node as primary or secondary. This role uses secondary roles artifactory_nginx to install nginx.

Role Variables

  • server_name: mandatory This is the server name. eg. "artifactory.54.175.51.178.xip.io"
  • artifactory_upgrade_only: Perform an software upgrade only. Default is false.

Additional variables can be found in defaults/main.yml.

Example Playbook

---
- hosts: artifactory_servers
  roles:
    - artifactory

Upgrades

The Artifactory role supports software upgrades. To use a role to perform a software upgrade only, use the artifactory_upgrade_only variable and specify the version. See the following example.

- hosts: artifactory_servers
  vars:
    artifactory_version: "{{ lookup('env', 'artifactory_version_upgrade') }}"
    artifactory_upgrade_only: true
  roles:
    - artifactory