mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 22:21:04 +01:00
Optimized setup_mode
This commit is contained in:
parent
ee1b2e0140
commit
03c04eadf7
@ -12,6 +12,8 @@ mode_verbose: false # Prints well formated debug information
|
|||||||
mode_test: false # Executes test routines instead of productive routines
|
mode_test: false # Executes test routines instead of productive routines
|
||||||
mode_update: true # Executes updates
|
mode_update: true # Executes updates
|
||||||
mode_backup: true # Activates the backup before the update procedure
|
mode_backup: true # Activates the backup before the update procedure
|
||||||
|
mode_setup: false # Execute the setup and initializing procedures
|
||||||
|
|
||||||
|
|
||||||
# Server Tact Variables
|
# Server Tact Variables
|
||||||
|
|
||||||
@ -107,13 +109,6 @@ nginx_upstreams_directory: "{{nginx_configuration_directory}}upstreams/"
|
|||||||
|
|
||||||
## Docker Applications
|
## Docker Applications
|
||||||
|
|
||||||
### Enable Setup
|
|
||||||
setup_default: "false" # Pass CLI commands to execute the setup tasks for the different roles
|
|
||||||
setup_akaunting: "{{setup_default}}"
|
|
||||||
setup_mailu: "{{setup_default}}"
|
|
||||||
setup_listmonk: "{{setup_default}}"
|
|
||||||
setup_mastodon: "{{setup_default}}"
|
|
||||||
|
|
||||||
### Enable Central MariaDB
|
### Enable Central MariaDB
|
||||||
enable_central_database: true
|
enable_central_database: true
|
||||||
|
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
|
|
||||||
- name: flush docker service
|
- name: flush docker service
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
when: setup | bool
|
when: mode_setup |bool
|
||||||
|
|
||||||
- name: setup routine for listmonk
|
- name: setup routine for listmonk
|
||||||
command:
|
command:
|
||||||
cmd: docker compose run -T --rm application sh -c "yes | ./listmonk --install"
|
cmd: docker compose run -T --rm application sh -c "yes | ./listmonk --install"
|
||||||
chdir: "{{docker_compose_instance_directory}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
when: setup | bool
|
when: mode_setup |bool
|
@ -64,11 +64,11 @@
|
|||||||
|
|
||||||
- name: flush docker service
|
- name: flush docker service
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
when: setup | bool
|
when: mode_setup |bool
|
||||||
|
|
||||||
- name: execute database migration
|
- name: execute database migration
|
||||||
command:
|
command:
|
||||||
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{top_domain}} {{mailu_initial_root_password}}"
|
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{top_domain}} {{mailu_initial_root_password}}"
|
||||||
chdir: "{{docker_compose_instance_directory}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: setup | bool
|
when: mode_setup |bool
|
@ -20,10 +20,10 @@
|
|||||||
|
|
||||||
- name: flush docker service
|
- name: flush docker service
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
when: setup | bool
|
when: mode_setup |bool
|
||||||
|
|
||||||
- name: setup routine for mastodon
|
- name: setup routine for mastodon
|
||||||
command:
|
command:
|
||||||
cmd: "docker-compose run --rm web bundle exec rails db:migrate"
|
cmd: "docker-compose run --rm web bundle exec rails db:migrate"
|
||||||
chdir: "{{docker_compose_instance_directory}}"
|
chdir: "{{docker_compose_instance_directory}}"
|
||||||
when: setup | bool
|
when: mode_setup |bool
|
@ -77,7 +77,6 @@
|
|||||||
vars:
|
vars:
|
||||||
domain: "{{domain_mailu}}"
|
domain: "{{domain_mailu}}"
|
||||||
http_port: 8007
|
http_port: 8007
|
||||||
setup: "{{ setup_mailu }}"
|
|
||||||
|
|
||||||
- name: setup elk hosts
|
- name: setup elk hosts
|
||||||
hosts: elk
|
hosts: elk
|
||||||
@ -98,7 +97,6 @@
|
|||||||
domains: "{{ [domain] + domains_mastodon_alternates }}"
|
domains: "{{ [domain] + domains_mastodon_alternates }}"
|
||||||
http_port: 8009
|
http_port: 8009
|
||||||
stream_port: 4001
|
stream_port: 4001
|
||||||
setup: "{{ setup_mastodon }}"
|
|
||||||
|
|
||||||
- name: setup pixelfed hosts
|
- name: setup pixelfed hosts
|
||||||
hosts: pixelfed
|
hosts: pixelfed
|
||||||
@ -190,7 +188,6 @@
|
|||||||
vars:
|
vars:
|
||||||
domain: "{{domain_listmonk}}"
|
domain: "{{domain_listmonk}}"
|
||||||
http_port: 8019
|
http_port: 8019
|
||||||
setup: "{{ setup_listmonk }}"
|
|
||||||
|
|
||||||
- name: setup discourse
|
- name: setup discourse
|
||||||
hosts: discourse
|
hosts: discourse
|
||||||
@ -249,7 +246,6 @@
|
|||||||
vars:
|
vars:
|
||||||
domain: "{{domain_akaunting}}"
|
domain: "{{domain_akaunting}}"
|
||||||
http_port: 8025
|
http_port: 8025
|
||||||
setup: "{{ setup_akaunting }}"
|
|
||||||
|
|
||||||
# Native Webserver Roles
|
# Native Webserver Roles
|
||||||
- name: setup nginx-homepages
|
- name: setup nginx-homepages
|
||||||
|
Loading…
Reference in New Issue
Block a user