ansible_proxmox_ignition_fc.../bookstack/tasks/main.yml

30 lines
759 B
YAML
Executable File

- name: get uid/gid of service account
getent:
database: passwd
key: "{{ node_account }}"
- set_fact:
uid: "{{ getent_passwd[node_account][1] }}"
gid: "{{ getent_passwd[node_account][2] }}"
- name: create docker data directory
become: yes
file:
path: /var/bookstack
state: directory
mode: '0755'
- name: render docker compose
template:
src: docker-compose.j2
dest: ~/docker-compose.yaml
# if were to continue:
#
# finish this play - upload compose - create systemd to run compose
# add a docker network to compose
# add minio for s3 backend to bookstack pictures/artifacts
# traefik - rproxy endpoints for bookstack and minio - maybe LE
# systemd timer job to run container to do dbdump and s3 backup to cloud