mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 09:06:57 -06:00
41 lines
784 B
YAML
41 lines
784 B
YAML
---
|
|
# tasks file for artifactory-nginx
|
|
- name: configure the artifactory nginx conf
|
|
template:
|
|
src: artifactory.conf.j2
|
|
dest: /etc/nginx/conf.d/artifactory.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0755'
|
|
become: yes
|
|
|
|
- name: ensure nginx dir exists
|
|
file:
|
|
path: "/var/opt/jfrog/nginx/ssl"
|
|
state: directory
|
|
become: yes
|
|
|
|
- name: configure certificate
|
|
template:
|
|
src: certificate.pem.j2
|
|
dest: "/var/opt/jfrog/nginx/ssl/cert.pem"
|
|
become: yes
|
|
|
|
- name: ensure pki exists
|
|
file:
|
|
path: "/etc/pki/tls"
|
|
state: directory
|
|
become: yes
|
|
|
|
- name: configure key
|
|
template:
|
|
src: certificate.key.j2
|
|
dest: "/etc/pki/tls/cert.key"
|
|
become: yes
|
|
|
|
- name: restart nginx
|
|
service:
|
|
name: nginx
|
|
state: restarted
|
|
enabled: yes
|
|
become: yes |