This repository contains the ansible scripts required to setup Microserver
As the ssh key hasn't been deployed, you need to use the password for the first run. Use -k
to pass the password, -K
so the sudo password can be entered, and -e 'ansible_user=<user>'
to override the ansible user to be whomever was setup on the server.
ansible-playbook microserver.yml -i hosts -e 'ansible_user=<user>' -k -K
NOTE: The cloud_sync scripts won't work until rclone
has been configured. See https://acbgbca.github.io/documentation/linux/rclone
ansible-playbook microserver.yml -i hosts
ansible-playbook microserver.yml -i hosts --check
ansible-playbook -i hosts microserver.yml --tags docker
ansible-vault encrypt_string '<string_to_encrypt>' --name '<string_name_of_variable>'
I.e.
ansible-vault encrypt_string 'secret' --name 'key'
Encryption successful
key: !vault |
$ANSIBLE_VAULT;1.1;AES256
<encrypted value>
For a fresh Promox install, the following steps need to be under taken:
Not all steps are convient to do via Ansible. The following should be done manually:
- Copy private key for Git access