computer-playbook/roles/docker-akaunting/tasks/main.yml

22 lines
801 B
YAML
Raw Normal View History

2022-01-18 19:08:45 +01:00
---
- name: recieve {{domain}} certificate
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
- name: configure {{domain}}.conf
template: src=roles/native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx
- name: pull docker repository
git:
repo: "https://github.com/akaunting/docker.git"
dest: "/home/administrator/docker-compose/akaunting/"
update: yes
- name: configure db.env
template: src=db.env.j2 dest=/home/administrator/docker-compose/akaunting/env/db.env
2022-01-18 19:26:44 +01:00
notify: setup akaunting
2022-01-18 19:08:45 +01:00
- name: configure run.env
template: src=run.env.j2 dest=/home/administrator/docker-compose/akaunting/env/run.env
2022-01-18 19:26:44 +01:00
notify: setup akaunting