31 lines
957 B
YAML
31 lines
957 B
YAML
|
# vim: ft=yaml.ansible
|
||
|
---
|
||
|
- name: Create WKD volume directories
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ services.wkd.volume }}/.well-known/openpgpkey/hu"
|
||
|
owner: root
|
||
|
mode: u=rwx,g=rx,o=rx
|
||
|
state: directory
|
||
|
|
||
|
- name: Copy PGP key to WKD volume directory
|
||
|
ansible.builtin.copy:
|
||
|
src: wkd/6fi64ioaua1j93gkt5eow8skha8e34sy
|
||
|
dest: "{{ services.wkd.volume }}/.well-known/openpgpkey/hu/6fi64ioaua1j93gkt5eow8skha8e34sy"
|
||
|
owner: root
|
||
|
mode: u=rw,g=r,o=r
|
||
|
|
||
|
- name: Deploy WKD Docker container
|
||
|
community.docker.docker_container:
|
||
|
name: wkd
|
||
|
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
|
||
|
restart: "{{ stop is undefined or not stop }}"
|
||
|
image: nginx:{{ services.wkd.version }}
|
||
|
restart_policy: always
|
||
|
networks:
|
||
|
- name: services
|
||
|
aliases:
|
||
|
- wkd
|
||
|
volumes:
|
||
|
- "{{ services.wkd.volume }}:/usr/share/nginx/html:ro"
|
||
|
- "{{ base_volume }}/nginx.conf:/etc/nginx/nginx.conf:ro"
|