netcup-setup/ansible
2025-12-27 02:06:33 +01:00
..
inventories/production move to recommended file and directory structure 2025-12-27 02:06:33 +01:00
roles move to recommended file and directory structure 2025-12-27 02:06:33 +01:00
main.yml move to recommended file and directory structure 2025-12-27 02:06:33 +01:00
README.md move to recommended file and directory structure 2025-12-26 19:59:39 +01:00

Ansible MicroOS VM setup

Description

(Vaulted) Variables for accessing the host with specific credentials are stored in the host_vars, they are handled as specific for how each user accesses a specific host.

(Vaulted) Variables for the services are stored in the group_vars, they are shared between all administrators of the host.

Requirements

Create vars and vault file for accessing the host following this structure. Adjust the username, become method and password.

inventories/production/host_vars/io/vars.yml:

---
ansible_user: tobias
ansible_become_method: sudo

inventories/production/host_vars/io/vault.yml: (create through ansible-vault create vault.yml with a strong password)

---
ansible_become_pass: EXAMPLE

Usage

ansible-playbook main.yml