Ansible role for configuring M/Monit.
- An Ansible ready host.
Install this role with ansible-galaxy.
$ ansible-galaxy install rajasoun.ansible_role_mmonit
$ ansible-vault decrypt ~/.ansible/roles/rajasoun.ansible_role_mmonit/files/license.yml
Place SSL Certificate & Key in directory /etc/certs/ssl/
ssl_certificate.crt
andssl_certificate_key.key
$ ansible-playbook -i ~/.ansible/roles/rajasoun.ansible_role_mmonit/inventory ~/.ansible/roles/rajasoun.ansible_role_mmonit/local.yml
Use Multipass for creating VM Locally
- Prepare Ansible Ready Host
$ git clone https://github.com/rajasoun/multipass-wrapper
$ cd multipass-wrapper
$ ./assist.bash multipass setup
$ ./assist.bash multipass status
$ ./assist.bash multipass shell
$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get install ansible -y
- Copy SSL Certificates
ssl_certificate.crt
andssl_certificate_key.key
available in directort/etc/certs/ssl/
inside VM
sudo mkdir -p /etc/certs/ssl/
sudo touch /etc/certs/ssl/ssl_certificate.crt
sudo touch /etc/certs/ssl/ssl_certificate_key.key
sudo chmod 0440 /etc/certs/ssl/
- Run Ansible Playbook
$ ansible-galaxy install rajasoun.ansible_role_mmonit
$ ansible-vault decrypt ~/.ansible/roles/rajasoun.ansible_role_mmonit/files/license.yml
$ ansible-playbook -i ~/.ansible/roles/rajasoun.ansible_role_mmonit/inventory ~/.ansible/roles/rajasoun.ansible_role_mmonit/local.yml
* mmonit_server_ip - IP Address of the VM, mmonit is being configured
MMonit will be available in port 80 and 443 with automatic redirect from 80 to 443
Url | Username | Password |
---|---|---|
http:// | mmonit | mmonit |