This commit is contained in:
2022-05-16 23:11:16 -04:00
parent ddb3764046
commit 71bbc36c4b
8 changed files with 77 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
- name: Install nginx
apt:
name: nginx
state: present
- name: Install nginx configuration
template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
mode: '0644'
register: nginx_conf
- name: Reload nginx
service:
name: nginx
state: reloaded
enabled: true

View File

@@ -22,7 +22,9 @@
image: nginx:{{ nginx_version }}
state: started
restart_policy: always
container_default_behavior: no_defaults
networks_cli_compatible: true
network_mode: traefik
networks:
- name: traefik
volumes: