Optimized all file and implemented setup procedures

This commit is contained in:
2024-01-05 23:13:46 +01:00
parent deec416abf
commit eb779c91bd
4 changed files with 94 additions and 12 deletions

View File

@@ -21,4 +21,14 @@
template:
src: "config.toml.j2"
dest: "{{docker_compose_instance_directory}}config.toml"
notify: docker compose project setup
notify: docker compose project setup
- name: flush docker service
meta: flush_handlers
when: setup | bool
- name: setup routine for listmonk
command:
cmd: "yes | docker compose run -T --rm application ./listmonk --install"
chdir: "{{docker_compose_instance_directory}}"
when: setup | bool

View File

@@ -60,4 +60,14 @@
vars:
on_calendar: "{{on_calendar_deploy_mailu_certificates}}"
service_name: "deploy-letsencrypt-mailu"
persistent: "true"
persistent: "true"
- name: flush docker service
meta: flush_handlers
when: setup | bool
- name: execute database migration
command:
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{top_domain}} {{mailu_initial_root_password}}"
chdir: "{{docker_compose_instance_directory}}"
when: setup | bool

View File

@@ -24,7 +24,11 @@
dest: "{{docker_compose_instance_directory}}.env.production"
notify: docker compose project setup
- name: execute database migration
- name: flush docker service
meta: flush_handlers
when: setup | bool
- name: setup routine for mastodon
command:
cmd: "docker-compose run --rm web bundle exec rails db:migrate"
chdir: "{{docker_compose_instance_directory}}"