mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 22:21:04 +01:00
Compare commits
4 Commits
29f134005f
...
e2ee58e6a5
Author | SHA1 | Date | |
---|---|---|---|
e2ee58e6a5 | |||
4660e5ace7 | |||
81b01bd7ce | |||
3e40b26fd3 |
@ -93,12 +93,3 @@ Kevin Veen-Birkenbach
|
|||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the GNU Affero General Public License v3.0. The full license text is available in the `LICENSE` file of this repository.
|
This project is licensed under the GNU Affero General Public License v3.0. The full license text is available in the `LICENSE` file of this repository.
|
||||||
|
|
||||||
## todo
|
|
||||||
- implement: https://archlinux.org/packages/extra/x86_64/signal-desktop/
|
|
||||||
|
|
||||||
## See
|
|
||||||
- https://www.middlewareinventory.com/blog/run-ansible-playbook-locally/
|
|
||||||
- https://stackoverflow.com/questions/30533372/run-an-ansible-task-only-when-the-hostname-contains-a-string
|
|
||||||
- https://archived.forum.manjaro.org/t/running-android-applications-on-arch-using-anbox/53332
|
|
||||||
- https://www.reddit.com/r/ManjaroLinux/comments/cbkblb/guide_run_android_apps_on_manjaro_super_simple/
|
|
||||||
|
14
playbook.yml
14
playbook.yml
@ -20,19 +20,19 @@
|
|||||||
hosts: wireguard_server
|
hosts: wireguard_server
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- application-wireguard
|
- wireguard
|
||||||
|
|
||||||
- name: setup wireguard client behind firewall\nat
|
- name: setup wireguard client behind firewall\nat
|
||||||
hosts: wireguard_behind_firewall
|
hosts: wireguard_behind_firewall
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- client_application-wireguard-behind-firewall
|
- client-wireguard-behind-firewall
|
||||||
|
|
||||||
- name: setup wireguard client
|
- name: setup wireguard client
|
||||||
hosts: wireguard_client
|
hosts: wireguard_client
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- client_application-wireguard
|
- client-wireguard
|
||||||
|
|
||||||
# Native Webserver Roles
|
# Native Webserver Roles
|
||||||
- name: setup homepages
|
- name: setup homepages
|
||||||
@ -260,7 +260,7 @@
|
|||||||
hosts: gnome
|
hosts: gnome
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- system-gnome
|
- desktop-gnome
|
||||||
|
|
||||||
- name: setup msi rgb keyboard
|
- name: setup msi rgb keyboard
|
||||||
hosts: msi_perkeyrgb
|
hosts: msi_perkeyrgb
|
||||||
@ -272,7 +272,7 @@
|
|||||||
hosts: ssh
|
hosts: ssh
|
||||||
become: false
|
become: false
|
||||||
roles:
|
roles:
|
||||||
- application-ssh
|
- client-ssh
|
||||||
|
|
||||||
- name: setup swapfile hosts
|
- name: setup swapfile hosts
|
||||||
hosts: swapfile
|
hosts: swapfile
|
||||||
@ -302,13 +302,13 @@
|
|||||||
hosts: torbrowser
|
hosts: torbrowser
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- application-torbrowser
|
- desktop-torbrowser
|
||||||
|
|
||||||
- name: setup nextcloud
|
- name: setup nextcloud
|
||||||
hosts: nextcloud_client
|
hosts: nextcloud_client
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- application-nextcloud
|
- client-nextcloud
|
||||||
|
|
||||||
- name: setup docker
|
- name: setup docker
|
||||||
hosts: docker
|
hosts: docker
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
- name: "reload cleanup-backups.service"
|
- name: "reload cleanup-backups.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: cleanup-backups.service
|
name: cleanup-backups.service
|
||||||
state: reloaded
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
- name: "reload cleanup-disc-space.service"
|
- name: "reload cleanup-disc-space.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: cleanup-disc-space.service
|
name: cleanup-disc-space.service
|
||||||
state: reloaded
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
- name: "restart cleanup-disc-space.timer"
|
- name: "restart cleanup-disc-space.timer"
|
||||||
|
2
roles/client-ssh/Readme.md
Normal file
2
roles/client-ssh/Readme.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Client SSH
|
||||||
|
Setups SSH on the client side
|
@ -1,2 +1,2 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- git-client
|
- client-git
|
2
roles/client-wireguard-behind-firewall/meta/main.yml
Normal file
2
roles/client-wireguard-behind-firewall/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dependencies:
|
||||||
|
- client-wireguard
|
2
roles/client-wireguard/meta/main.yml
Normal file
2
roles/client-wireguard/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dependencies:
|
||||||
|
- wireguard
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- client_application-wireguard
|
|
@ -1,2 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- application-wireguard
|
|
@ -1,2 +1,2 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- git-client
|
- client-git
|
@ -1,3 +1,3 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- application-libreoffice
|
- desktop-libreoffice
|
||||||
- collection-video-conference
|
- collection-video-conference
|
@ -1,3 +1,3 @@
|
|||||||
# system-gnome
|
# desktop-gnome
|
||||||
## further information
|
## further information
|
||||||
- https://askubuntu.com/questions/1029376/how-do-i-enable-and-disable-gnome-extensions-from-the-command-line
|
- https://askubuntu.com/questions/1029376/how-do-i-enable-and-disable-gnome-extensions-from-the-command-line
|
3
roles/desktop-gnome/meta/main.yml
Normal file
3
roles/desktop-gnome/meta/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- client-git
|
||||||
|
- desktop-caffeine
|
@ -1,4 +1,4 @@
|
|||||||
# application-virtual-box
|
# desktop-virtual-box
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S virtualbox "$(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ')" &&
|
sudo pacman -S virtualbox "$(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ')" &&
|
@ -82,9 +82,9 @@ docker-compose -p akaunting up -d --force-recreate
|
|||||||
|
|
||||||
# recover all volumes
|
# recover all volumes
|
||||||
cd {{path_administrator_scripts}}backup-docker-to-local &&
|
cd {{path_administrator_scripts}}backup-docker-to-local &&
|
||||||
bash docker-volume-recover.sh akaunting_akaunting-modules ${machine_id:0:64} "$backup_version" &&
|
bash recover-docker-from-local.sh akaunting_akaunting-modules ${machine_id:0:64} "$backup_version" &&
|
||||||
bash docker-volume-recover.sh akaunting_akaunting-data ${machine_id:0:64} "$backup_version" &&
|
bash recover-docker-from-local.sh akaunting_akaunting-data ${machine_id:0:64} "$backup_version" &&
|
||||||
bash docker-volume-recover.sh akaunting_akaunting-db ${machine_id:0:64} "$backup_version" akaunting-db "$akaunting_db_password" akaunting
|
bash recover-docker-from-local.sh akaunting_akaunting-db ${machine_id:0:64} "$backup_version" akaunting-db "$akaunting_db_password" akaunting
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ cd {{path_docker_compose_files}}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 &&
|
||||||
bash ./docker-volume-recover.sh "nextcloud_data" "$(sha256sum /etc/machine-id | head -c 64)"
|
bash ./recover-docker-from-local.sh "nextcloud_data" "$(sha256sum /etc/machine-id | head -c 64)"
|
||||||
```
|
```
|
||||||
|
|
||||||
## database
|
## database
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
- name: "reload heal-docker.service"
|
- name: "reload heal-docker.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: heal-docker.service
|
name: heal-docker.service
|
||||||
state: reloaded
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
- name: "restart heal-docker.timer"
|
- name: "restart heal-docker.timer"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
- name: "reload health-btrfs.service"
|
- name: "reload health-btrfs.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: health-btrfs.service
|
name: health-btrfs.service
|
||||||
state: reloaded
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
- name: "restart health-btrfs.timer"
|
- name: "restart health-btrfs.timer"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
- name: "reload health-disc-space.service"
|
- name: "reload health-disc-space.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: health-disc-space.service
|
name: health-disc-space.service
|
||||||
state: reloaded
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
- name: "restart health-disc-space.timer"
|
- name: "restart health-disc-space.timer"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
- name: "reload health-docker.service"
|
- name: "reload health-docker.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: health-docker.service
|
name: health-docker.service
|
||||||
state: reloaded
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
- name: "restart health-docker.timer"
|
- name: "restart health-docker.timer"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
- name: "reload health-journalctl.service"
|
- name: "reload health-journalctl.service"
|
||||||
systemd:
|
systemd:
|
||||||
name: health-journalctl.service
|
name: health-journalctl.service
|
||||||
state: reloaded
|
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
- name: "restart health-journalctl.timer"
|
- name: "restart health-journalctl.timer"
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- git-client
|
|
||||||
- application-caffeine
|
|
@ -1,2 +1,2 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- git-client
|
- client-git
|
@ -7,12 +7,12 @@
|
|||||||
- name: "Update with pacman"
|
- name: "Update with pacman"
|
||||||
include_role:
|
include_role:
|
||||||
name: update-pacman
|
name: update-pacman
|
||||||
when: ansible_distribution == 'Archlinux' and docker_compose_directory_stat.stat.exists
|
when: ansible_distribution == 'Archlinux'
|
||||||
|
|
||||||
- name: "Update with apt"
|
- name: "Update with apt"
|
||||||
include_role:
|
include_role:
|
||||||
name: update-apt
|
name: update-apt
|
||||||
when: ansible_distribution == "Debian" and docker_compose_directory_stat.stat.exists
|
when: ansible_distribution == "Debian"
|
||||||
|
|
||||||
- name: "Update Docker Images"
|
- name: "Update Docker Images"
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file is created by
|
# This file is created by
|
||||||
# https://github.com/kevinveenbirkenbach/computer-playbook/tree/main/roles/application-wireguard
|
# https://github.com/kevinveenbirkenbach/computer-playbook/tree/main/roles/wireguard
|
||||||
|
|
||||||
net.ipv6.conf.all.disable_ipv6 = 0
|
net.ipv6.conf.all.disable_ipv6 = 0
|
||||||
net.ipv6.conf.default.disable_ipv6 = 0
|
net.ipv6.conf.default.disable_ipv6 = 0
|
Loading…
Reference in New Issue
Block a user