mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-09 22:41:03 +01:00
renamed variable
This commit is contained in:
parent
fe77fb623e
commit
3721e9e0ad
@ -29,7 +29,7 @@ size_percent_cleanup_disc_space: 90
|
|||||||
path_administrator_home: "/home/administrator/"
|
path_administrator_home: "/home/administrator/"
|
||||||
path_administrator_scripts: "{{path_administrator_home}}scripts/"
|
path_administrator_scripts: "{{path_administrator_home}}scripts/"
|
||||||
path_docker_volumes: "{{path_administrator_home}}volumes/docker/"
|
path_docker_volumes: "{{path_administrator_home}}volumes/docker/"
|
||||||
docker_compose_instances_directory: "{{path_administrator_home}}docker-compose/"
|
path_docker_compose_instances: "{{path_administrator_home}}docker-compose/"
|
||||||
|
|
||||||
# Runtime Variables
|
# Runtime Variables
|
||||||
activate_all_timers (bool): false # Activates all timers, independend if the handlers had been triggered
|
activate_all_timers (bool): false # Activates all timers, independend if the handlers had been triggered
|
||||||
|
@ -19,7 +19,7 @@ Due to license issues, bugs and that in the past after an akaunting update your
|
|||||||
1. **Navigate to Docker Compose Directory**: Change to the directory containing your Docker Compose files for Akaunting.
|
1. **Navigate to Docker Compose Directory**: Change to the directory containing your Docker Compose files for Akaunting.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd {{docker_compose_instances_directory}}akaunting/
|
cd {{path_docker_compose_instances}}akaunting/
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Set Environment Variables**: These are necessary to prevent timeouts during long operations.
|
2. **Set Environment Variables**: These are necessary to prevent timeouts during long operations.
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}akaunting/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}akaunting/"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}attendize/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}attendize/"
|
||||||
mail_interface_domain: "mail.{{domain}}"
|
mail_interface_domain: "mail.{{domain}}"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate baserow
|
- name: recreate baserow
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p baserow up -d --force-recreate
|
cmd: docker-compose -p baserow up -d --force-recreate
|
||||||
chdir: "{{docker_compose_instances_directory}}baserow/"
|
chdir: "{{path_docker_compose_instances}}baserow/"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}baserow/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}baserow/"
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}bigbluebutton/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}bigbluebutton/"
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}funkwhale/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}funkwhale/"
|
||||||
client_max_body_size: "512M"
|
client_max_body_size: "512M"
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}gitea/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}gitea/"
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}joomla/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}joomla/"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate listmonk
|
- name: recreate listmonk
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p listmonk up -d --force-recreate
|
cmd: docker-compose -p listmonk up -d --force-recreate
|
||||||
chdir: "{{docker_compose_instances_directory}}listmonk/"
|
chdir: "{{path_docker_compose_instances}}listmonk/"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}listmonk/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}listmonk/"
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
vars:
|
vars:
|
||||||
client_max_body_size: "31M"
|
client_max_body_size: "31M"
|
||||||
|
|
||||||
- name: "create {{docker_compose_instances_directory}}mailu"
|
- name: "create {{path_docker_compose_instances}}mailu"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_instances_directory}}mailu"
|
path: "{{path_docker_compose_instances}}mailu"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}mailu/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}mailu/"
|
@ -5,11 +5,11 @@
|
|||||||
```
|
```
|
||||||
## cleanup
|
## cleanup
|
||||||
```bash
|
```bash
|
||||||
cd {{docker_compose_instances_directory}}mastodon/
|
cd {{path_docker_compose_instances}}mastodon/
|
||||||
docker-compose down
|
docker-compose down
|
||||||
docker volume rm mastodon_data mastodon_database mastodon_redis
|
docker volume rm mastodon_data mastodon_database mastodon_redis
|
||||||
cd {{docker_compose_instances_directory}} &&
|
cd {{path_docker_compose_instances}} &&
|
||||||
rm -vR {{docker_compose_instances_directory}}mastodon
|
rm -vR {{path_docker_compose_instances}}mastodon
|
||||||
```
|
```
|
||||||
|
|
||||||
## access terminal
|
## access terminal
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}mastodon/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}mastodon/"
|
||||||
|
@ -12,7 +12,7 @@ This Ansible role deploys a Matomo analytics platform instance using Docker.
|
|||||||
|
|
||||||
- `domain`: The domain where Matomo will be accessible.
|
- `domain`: The domain where Matomo will be accessible.
|
||||||
- `administrator_email`: The email used for SSL certificate registration.
|
- `administrator_email`: The email used for SSL certificate registration.
|
||||||
- `docker_compose_instances_directory`: Path to store Docker Compose files.
|
- `path_docker_compose_instances`: Path to store Docker Compose files.
|
||||||
- `http_port`: The host port that Matomo will be accessible on.
|
- `http_port`: The host port that Matomo will be accessible on.
|
||||||
- `matomo_database_password`: Password for the Matomo database.
|
- `matomo_database_password`: Password for the Matomo database.
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}matomo/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}matomo/"
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}mybb/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}mybb/"
|
||||||
docker_compose_instance_confd_directory: "{{docker_compose_instance_directory}}conf.d/"
|
docker_compose_instance_confd_directory: "{{docker_compose_instance_directory}}conf.d/"
|
||||||
docker_compose_instance_confd_defaultconf_file: "{{docker_compose_instance_confd_directory}}default.conf"
|
docker_compose_instance_confd_defaultconf_file: "{{docker_compose_instance_confd_directory}}default.conf"
|
||||||
target_mount_conf_d_directory: "/etc/nginx/conf.d/"
|
target_mount_conf_d_directory: "/etc/nginx/conf.d/"
|
||||||
|
@ -57,7 +57,7 @@ and disable the not functioning apps.
|
|||||||
|
|
||||||
## recover latest backup
|
## recover latest backup
|
||||||
```bash
|
```bash
|
||||||
cd {{docker_compose_instances_directory}}nextcloud &&
|
cd {{path_docker_compose_instances}}nextcloud &&
|
||||||
docker-compose down &&
|
docker-compose down &&
|
||||||
docker-compose exec -i database mysql -u nextcloud -pPASSWORT nextcloud < "/Backups/$(sha256sum /etc/machine-id | head -c 64)/backup-docker-to-local/latest/nextcloud_database/sql/backup.sql" &&
|
docker-compose exec -i database mysql -u nextcloud -pPASSWORT nextcloud < "/Backups/$(sha256sum /etc/machine-id | head -c 64)/backup-docker-to-local/latest/nextcloud_database/sql/backup.sql" &&
|
||||||
cd {{path_administrator_scripts}}backup-docker-to-local &&
|
cd {{path_administrator_scripts}}backup-docker-to-local &&
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}nextcloud/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}nextcloud/"
|
@ -7,7 +7,7 @@ watch -n 2 "docker ps -a | grep peertube"
|
|||||||
|
|
||||||
## clean rebuild
|
## clean rebuild
|
||||||
```bash
|
```bash
|
||||||
cd {{docker_compose_instances_directory}}peertube/ &&
|
cd {{path_docker_compose_instances}}peertube/ &&
|
||||||
docker-compose down
|
docker-compose down
|
||||||
docker volume rm peertube_assets peertube_config peertube_data peertube_database peertube_redis
|
docker volume rm peertube_assets peertube_config peertube_data peertube_database peertube_redis
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}peertube/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}peertube/"
|
||||||
|
@ -49,7 +49,7 @@ docker volume rm pixelfed_application_data pixelfed_database pixelfed_redis_data
|
|||||||
|
|
||||||
To update your Pixelfed instance, navigate to the directory where your `docker-compose.yml` file is located and run these commands:
|
To update your Pixelfed instance, navigate to the directory where your `docker-compose.yml` file is located and run these commands:
|
||||||
```bash
|
```bash
|
||||||
cd {{docker_compose_instances_directory}}pixelfed/ &&
|
cd {{path_docker_compose_instances}}pixelfed/ &&
|
||||||
docker-compose down &&
|
docker-compose down &&
|
||||||
docker network prune -f &&
|
docker network prune -f &&
|
||||||
docker-compose pull &&
|
docker-compose pull &&
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate pixelfed
|
- name: recreate pixelfed
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p pixelfed up -d --force-recreate
|
cmd: docker-compose -p pixelfed up -d --force-recreate
|
||||||
chdir: "{{docker_compose_instances_directory}}pixelfed/"
|
chdir: "{{path_docker_compose_instances}}pixelfed/"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}pixelfed/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}pixelfed/"
|
||||||
client_max_body_size: "512M"
|
client_max_body_size: "512M"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}roulette-wheel/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}roulette-wheel/"
|
||||||
app_path: "{{docker_compose_instances_directory}}roulette-wheel/app/"
|
app_path: "{{path_docker_compose_instances}}roulette-wheel/app/"
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}wordpress/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}wordpress/"
|
||||||
wordpress_max_upload_size: "64M"
|
wordpress_max_upload_size: "64M"
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{docker_compose_instances_directory}}yourls/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}yourls/"
|
@ -6,9 +6,9 @@
|
|||||||
state: present
|
state: present
|
||||||
notify: docker restart
|
notify: docker restart
|
||||||
|
|
||||||
- name: "create {{docker_compose_instances_directory}}"
|
- name: "create {{path_docker_compose_instances}}"
|
||||||
file:
|
file:
|
||||||
path: "{{docker_compose_instances_directory}}"
|
path: "{{path_docker_compose_instances}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0700
|
mode: 0700
|
||||||
owner: administrator
|
owner: administrator
|
||||||
|
@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{docker_compose_instances_directory}}'
|
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{path_docker_compose_instances}}'
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: "Check if {{ docker_compose_instances_directory }} directory exists"
|
- name: "Check if {{ path_docker_compose_instances }} directory exists"
|
||||||
stat:
|
stat:
|
||||||
path: "{{ docker_compose_instances_directory }}"
|
path: "{{ path_docker_compose_instances }}"
|
||||||
register: docker_compose_directory_stat
|
register: docker_compose_directory_stat
|
||||||
|
|
||||||
- name: "Update with pacman"
|
- name: "Update with pacman"
|
||||||
|
Loading…
Reference in New Issue
Block a user