mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 01:06:55 -06:00
27 lines
517 B
YAML
27 lines
517 B
YAML
---
|
|
|
|
# Tasks for configuring NGINX for Artifactory
|
|
- name: Ensure latest nginx is installed
|
|
package:
|
|
name: nginx
|
|
state: latest
|
|
|
|
- name: Configure main NGINX conf file.
|
|
copy:
|
|
src: nginx.conf
|
|
dest: /etc/nginx/nginx.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0755'
|
|
notify: restart 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'
|
|
notify: restart nginx
|