Go to file
Quentin Duchemin d41d0f2d7d Add mlocate 2021-05-11 15:35:24 +02:00
inv Start to add tasks to download, tag and import music 2021-05-11 13:56:51 +02:00
roles Add mlocate 2021-05-11 15:35:24 +02:00
.gitignore Change vault password location 2021-03-14 19:33:24 +01:00
README.md Switch to new VPS 2021-04-27 03:27:50 +02:00
all.yml Start to add tasks to download, tag and import music 2021-05-11 13:56:51 +02:00
ansible.cfg Change vault password location 2021-03-14 19:33:24 +01:00
music.yml Start to add tasks to download, tag and import music 2021-05-11 13:56:51 +02:00
requirements.txt Functional base playbook 2021-02-12 22:13:37 +01:00

README.md

Install Ansible

pip install -r requirements.txt

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