Initial move to consolidate services on ryzen host
This commit is contained in:
@@ -1,21 +1,39 @@
|
||||
# Ansible scripte
|
||||
|
||||
## Setup
|
||||
|
||||
```bash
|
||||
# Ensure `ansible-core` is installed using pipx
|
||||
sudo apt remove ansible-core
|
||||
# Install pipx and ansible-core
|
||||
sudo apt-get install pipx
|
||||
pipx install ansible-core
|
||||
# Ensure your path is correct for pipx apps
|
||||
pipx ensurepath
|
||||
# Ensure any shell caching of paths is reset
|
||||
hash -r
|
||||
```
|
||||
|
||||
## Scripts
|
||||
|
||||
```bash
|
||||
# install roles and collections
|
||||
ansible-galaxy install -r requirements.yml
|
||||
|
||||
# Install the frontend
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass frontend.yaml
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass frontend.yaml -K
|
||||
|
||||
# Github runner
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass github-runner.yaml
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass github-runner.yaml -K
|
||||
|
||||
# gitea server
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass gitea.yaml
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass gitea.yaml -K
|
||||
|
||||
# graphana + prometheus
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass monitor.yaml
|
||||
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass monitor.yaml -K
|
||||
|
||||
# apt-cacheer-ng
|
||||
ansible-playbook -i inventory.yaml --ask-become-pass apt-cacher-ng.yaml
|
||||
ansible-playbook -i inventory.yaml --ask-become-pass apt-cacher-ng.yaml -K
|
||||
```
|
||||
|
||||
To make use of the apt cache, ensure you have a file like this with CACHE_HOST changes to your actual host
|
||||
|
||||
Reference in New Issue
Block a user