Moving common vars for role to vars/main.yaml
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 6s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 21s

This commit is contained in:
shockrah 2025-05-25 22:33:26 -07:00
parent 053db8793b
commit 4a0a12242a
2 changed files with 5 additions and 6 deletions

View File

@ -1,9 +1,5 @@
- name: Reverse proxy role configuration
become: true
vars:
nginx_configs:
- nomad.conf
- ncr.conf
block:
- name: Ensure /etc/hosts are up to date
ansible.builtin.copy:
@ -18,14 +14,14 @@
src: "{{ item }}"
dest: "/etc/nginx/sites-available/{{ item }}"
mode: "0644"
loop: "{{ nginx_configs }}"
loop: "{{ proxy_nginx_configs }}"
- name: Link the nomad.conf to sites-enabled
ansible.builtin.file:
path: "/etc/nginx/sites-enabled/{{ item }}"
state: link
src: "/etc/nginx/sites-available/{{ item }}"
mode: "0644"
loop: "{{ nginx_configs }}"
loop: "{{ proxy_nginx_configs }}"
- name: Restart nginx
ansible.builtin.systemd_service:
name: nginx

View File

@ -0,0 +1,3 @@
proxy_nginx_configs:
- nomad.conf
- ncr.conf