37 lines
846 B
YAML
37 lines
846 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create base directory for Docker volumes
|
|
ansible.builtin.file:
|
|
path: "{{ base_volume }}"
|
|
owner: root
|
|
mode: u=rwx,g=rx,o=rx
|
|
state: directory
|
|
|
|
- name: Copy Docker daemon config file
|
|
ansible.builtin.copy:
|
|
src: dockerd/daemon.json
|
|
dest: /etc/docker/daemon.json
|
|
owner: root
|
|
mode: u=rw,g=r,o=r
|
|
notify: reload-dockerd
|
|
|
|
- name: Flush handlers
|
|
ansible.builtin.meta: flush_handlers
|
|
|
|
- name: Create Docker network for services
|
|
community.docker.docker_network:
|
|
name: services
|
|
state: present
|
|
|
|
- name: Create Docker network for Tor
|
|
community.docker.docker_network:
|
|
name: tor
|
|
state: present
|
|
|
|
- name: Copy nginx.conf to shared location
|
|
ansible.builtin.copy:
|
|
src: shared/nginx.conf
|
|
dest: "{{ base_volume }}/nginx.conf"
|
|
owner: root
|
|
mode: u=rw,g=r,o=r
|