infra/ansible/roles/local-server-head/tasks/reverse_proxy.yaml
shockrah 3f2e6d86f6
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 6s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 19s
Proxying a new container registry service
2025-05-23 00:31:00 -07:00

31 lines
772 B
YAML

- name: Keep /etc/hosts up to date
ansible.builtin.copy:
dest: /etc/hosts
src: host-file
mode: "0644"
- name: Ensure nginx is setup as latest
ansible.builtin.apt:
name: nginx
- name: Copy the nomad.conf to available configurations
ansible.builtin.copy:
src: "{{ item }}"
dest: "/etc/nginx/sites-available/{{ item }}"
mode: "0644"
loop:
- nomad.conf
- sanity.conf
- ncr.conf
- 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:
- nomad.conf
- sanity.conf
- ncr.conf
- name: Restart nginx
ansible.builtin.systemd_service:
name: nginx
state: restarted