Go to file
Quentin Duchemin fb8f68892d
[Hugo] include content with publishdate in the future
2023-09-28 10:26:34 +02:00
inv Add Restic/autorestic backups for Funkwhale 2023-06-11 22:03:06 +02:00
roles [Hugo] include content with publishdate in the future 2023-09-28 10:26:34 +02:00
.gitignore make album download work 2021-05-12 17:13:33 +02:00
README.md Stuff 2023-03-07 18:40:50 +01:00
all.yml Add Restic/autorestic backups for Funkwhale 2023-06-11 22:03:06 +02:00
ansible.cfg Bump Gitea, fix bad usage of environment 2023-08-10 15:41:24 +02:00
music.yml Switch from deezloader to deemix 2021-10-13 17:53:07 +02:00
requirements.txt Functional base playbook 2021-02-12 22:13:37 +01:00
requirements.yml Stuff 2023-03-07 18:40:50 +01:00

README.md

Install Ansible

pip install -r requirements.txt
ansible-galaxy install -r requirements.yml

Ansible Vault

To manage secrets, this repository use Ansible Vault.

Create a secret

ansible-vault create inv/host_vars/chosto.me/secrets.yml

Edit a secret

ansible-vault edit inv/host_vars/chosto.me/secrets.yml

Server

All servers managed should have this base configuration in order to work :

  • a user chosto
  • SSH access allowed for this user
  • a root access (sudo) for user chosto with a password specified as ansible_become_pass in inventory

e.g.

# adduser chosto
# adduser chosto sudo

Usage

ansible-playbook [-t tag1 tag2...] all.yml