Track the nginx-menu playbook as it stands
It has been serving three menu Sites from an untracked directory, so today's state was not reproducible or revertible.
This commit is contained in:
1 parent
b7c5997274
commit
e54dd127ed
8 files changed
+162
No files matched your search
@@ -0,0 +1,30 @@
|
||||
---
|
||||
# Tasks for Nginx role to serve static files
|
||||
- name: Pull Nginx image
|
||||
docker_image:
|
||||
name: "{{ image_name }}"
|
||||
source: pull
|
||||
force_source: yes
|
||||
|
||||
- name: Ensure Host Directory exist
|
||||
file:
|
||||
path: "{{ host_directory }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
# - name: Upload the Nginx config file
|
||||
# template:
|
||||
# src: "files/nginx.conf.j2"
|
||||
# dest: "{{ host_directory }}/nginx.conf"
|
||||
|
||||
- name: Create caddy container
|
||||
docker_container:
|
||||
name: "{{ docker_container }}"
|
||||
image: "{{ image_name }}"
|
||||
state: started
|
||||
restart_policy: unless-stopped
|
||||
volumes:
|
||||
# - "{{ host_directory }}/nginx.conf:/etc/nginx/nginx.conf:ro"
|
||||
- "{{ host_directory }}:/usr/share/nginx/html:ro"
|
||||
networks:
|
||||
- name: "{{ docker_network }}"
|
||||
Reference in new issue
Block a user