diff --git a/group_vars/all b/group_vars/all index 56d2bc55..aeb4c990 100644 --- a/group_vars/all +++ b/group_vars/all @@ -1,51 +1,4 @@ -# PASSWORDS AND SECRETS: - -akaunting_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -akaunting_setup_admin_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -baserow_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -bigbluebutton_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -bigbluebutton_etherpad_api_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -bigbluebutton_fsesl_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -bigbluebutton_rails_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -bigbluebutton_shared_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -bigbluebutton_postgresql_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -bigbluebutton_turn_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -central_mariadb_root_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -central_postgres_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -discourse_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -gitlab_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -gitlab_initial_root_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -gitea_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -listmonk_admin_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -listmonk_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mailu_api_token: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mailu_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mailu_initial_root_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mailu_secret_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mastodon_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mastodon_otp_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mastodon_secret_key_base: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mastodon_vapid_private_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -mastodon_vapid_public_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -matomo_auth_token: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -matomo_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -matrix_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -matrix_generic_secret_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -matrix_form_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -matrix_macaroon_secret_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -matrix_registration_shared_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -nextcloud_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -openproject_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -peertube_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -peertube_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -pixelfed_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -pixelfed_app_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -wordpress_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -yourls_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" -yourls_user_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" - # General -setup: false # Pass CLI commands to execute the setup tasks for the different roles verbose: false # Prints well formated debug information top_domain: "localhost" # Change this in inventory to your domain ip4_address: "127.0.0.1" # Change thie in inventory to the ip address of your server @@ -148,6 +101,13 @@ nginx_upstreams_directory: "{{nginx_configuration_directory}}upstreams/" ## 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_database: true diff --git a/inventory.example.yml b/inventory.example.yml new file mode 100644 index 00000000..a9c2969d --- /dev/null +++ b/inventory.example.yml @@ -0,0 +1,48 @@ +# THIS INVENTORY IS AN EXAMPLE INVENTORY. +# You should change all of the variables in here. +# Addidiotnally feel free to overwrite configuration variables of group_vars/all in the enventory + +# PASSWORDS AND SECRETS: +akaunting_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +akaunting_setup_admin_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +baserow_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +bigbluebutton_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +bigbluebutton_etherpad_api_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +bigbluebutton_fsesl_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +bigbluebutton_rails_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +bigbluebutton_shared_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +bigbluebutton_postgresql_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +bigbluebutton_turn_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +central_mariadb_root_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +central_postgres_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +discourse_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +gitlab_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +gitlab_initial_root_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +gitea_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +listmonk_admin_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +listmonk_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mailu_api_token: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mailu_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mailu_initial_root_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mailu_secret_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mastodon_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mastodon_otp_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mastodon_secret_key_base: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mastodon_vapid_private_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +mastodon_vapid_public_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +matomo_auth_token: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +matomo_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +matrix_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +matrix_generic_secret_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +matrix_form_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +matrix_macaroon_secret_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +matrix_registration_shared_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +nextcloud_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +openproject_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +peertube_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +peertube_secret: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +pixelfed_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +pixelfed_app_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +wordpress_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +yourls_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" +yourls_user_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" \ No newline at end of file diff --git a/servers.yml b/servers.yml index 993b86a6..4b8f26bf 100644 --- a/servers.yml +++ b/servers.yml @@ -77,6 +77,7 @@ vars: domain: "{{domain_mailu}}" http_port: 8007 + setup: "{{ setup_maliu | default(default_setup) }}" - name: setup elk hosts hosts: elk @@ -93,10 +94,11 @@ roles: - role: docker-mastodon vars: - domain: "{{domain_mastodon}}" - domains: "{{ [domain] + domains_mastodon_alternates }}" - http_port: 8009 - stream_port: 4001 + domain: "{{domain_mastodon}}" + domains: "{{ [domain] + domains_mastodon_alternates }}" + http_port: 8009 + stream_port: 4001 + setup: "{{ mastodon_maliu | default(default_setup) }}" - name: setup pixelfed hosts hosts: pixelfed @@ -186,8 +188,9 @@ roles: - role: docker-listmonk vars: - domain: "{{domain_listmonk}}" - http_port: 8019 + domain: "{{domain_listmonk}}" + http_port: 8019 + setup: "{{ setup_listmonk | default(default_setup) }}" - name: setup discourse hosts: discourse @@ -244,8 +247,9 @@ roles: - role: docker-akaunting vars: - domain: "{{domain_akaunting}}" - http_port: 8025 + domain: "{{domain_akaunting}}" + http_port: 8025 + setup: "{{ akaunting_maliu | default(default_setup) }}" # Native Webserver Roles - name: setup nginx-homepages