This repository contains the ansible scripts required to setup Microserver
ansible-playbook docker.yml -i hosts
ansible-playbook docker.yml -i hosts --check
ansible-playbook -i hosts docker.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 via the Proxmox interface prior to running the Ansible scripts:
Create devops user
ansible-playbook proxmox-firstrun.yml -i hosts --ask-pass
TODO:
- Create interface only user (we shouldn't use root)
- Setup disks
- add steps from https://pve.proxmox.com/wiki/Cloud-Init_Support for creation of Ubuntu cloud-init server template
Setup Promox
ansible-playbook proxmox.yml -i hosts
Create Ubuntu Server Template
- Log into Proxmox