2024-01-02 15:30:03 +01:00
|
|
|
# VM Setup
|
|
|
|
Fist time VM/Container setup.
|
|
|
|
|
|
|
|
- Prepare for ansible management.
|
|
|
|
- Clear `ansible` user and group
|
|
|
|
- Add `ansible` user and group with encrypted password
|
|
|
|
- Make `ansible` sudo user
|
|
|
|
- Add Ansible's ssh pubkey for authentication
|
|
|
|
- Adjust permissions
|
|
|
|
- Install docker compose
|
|
|
|
- Add docker update script to weekly cron
|
|
|
|
- Add docker compose file
|
|
|
|
- Install docker compose
|
|
|
|
- Start `autoheal` container
|
2023-02-22 09:56:07 +01:00
|
|
|
|
2023-02-22 11:28:14 +01:00
|
|
|
Debian:
|
2023-02-22 09:56:07 +01:00
|
|
|
```sh
|
|
|
|
apt install -y curl
|
2023-12-31 14:03:56 +01:00
|
|
|
curl -s https://git.schulze.network/schulze/vm-setup/raw/branch/main/ansible.sh | sh
|
|
|
|
curl -s https://git.schulze.network/schulze/vm-setup/raw/branch/main/docker.sh | sh
|
2023-02-22 11:28:14 +01:00
|
|
|
```
|
2024-01-02 15:30:03 +01:00
|
|
|
|
|
|
|
Rocky:
|
|
|
|
```sh
|
|
|
|
curl -s https://git.schulze.network/schulze/vm-setup/raw/branch/main/ansible-rocky.sh | sh
|
2024-01-02 15:58:55 +01:00
|
|
|
curl -s https://git.schulze.network/schulze/vm-setup/raw/branch/main/docker-rocky.sh | sh
|
2024-01-02 15:30:03 +01:00
|
|
|
```
|