# 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`: ```yaml --- 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) ```yaml --- ansible_become_pass: EXAMPLE ``` ## Usage ```shell ansible-playbook main.yml ```