Files
ansible-playbooks/README.md
T

1.0 KiB
Executable File

# 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

# Github runner
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass github-runner.yaml

# gitea server
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass gitea.yaml

# graphana + prometheus
ansible-playbook -i inventory.yaml -e @secrets.enc --ask-vault-pass monitor.yaml

# apt-cacheer-ng
ansible-playbook -i inventory.yaml --ask-become-pass apt-cacher-ng.yaml

To make use of the apt cache, ensure you have a file like this with CACHE_HOST changes to your actual host

echo << EOF >> /etc/apt/apt.conf.d/01proxy
Acquire::HTTP::Proxy "http://<CACHE_HOST>:3142";
Acquire::HTTPS::Proxy "false";
EOF

or add these to a Dockerfile

RUN echo 'Acquire::HTTP::Proxy "http://<CACHE_HOST>:3142";' >> /etc/apt/apt.conf.d/01proxy \
 && echo 'Acquire::HTTPS::Proxy "false";' >> /etc/apt/apt.conf.d/01proxy