first push with basic outline

This commit is contained in:
tolerryan
2026-09-01 15:40:22 +00:00
parent 7ccf851913
commit 121fba9b66
21 changed files with 465 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
---
- name: Install nginx
ansible.builtin.apt:
name: nginx
state: present
- name: Ensure nginx is running and enabled
ansible.builtin.service:
name: nginx
state: started
enabled: true
# TODO: template out vhosts from the `nginx_sites` var defined in
# group_vars/webservers.yml, e.g.:
#
# - name: Deploy vhost configs
# ansible.builtin.template:
# src: vhost.conf.j2
# dest: "/etc/nginx/sites-available/{{ item.name }}"
# loop: "{{ nginx_sites }}"
# notify: Reload nginx