Ansible playbook for setting greenfield VM deployment
- Setup initial play
- Install packages
- Install Docker
- Install Portainer
- Install Node Exporter
Run the requirements install
ansible-galaxy collection install -r requirements.yaml
ansible-playbook -i hosts.yaml all.yaml
You can use tags to only run some of the roles.
ansible-playbook -i hosts.yaml all.yaml --tags=portainer
With Node Exporter configured, metrics are accessible at http://<vm-hostname>:9100/metrics