Ansible playbook for Fleetdm on Ubuntu 20.04 Haven't tested on other distros.
Install dependencies for mysql installation first
ansible-galaxy install geerlingguy.mysql
Generate TLS Certs for fleetdm. For Test servers and development server only . Use CA Issued certs in Production.
Open your terminal in the ansible-fleetdm folder and type the following:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout conf/tls/fleetdm.key -out conf/tls/fleetdm.crt
Add your own keys and variables in vars/main.yml
Add ip addresses in hosts file
ansible-playbook -i hosts deploy-fleet.yml
Go to **https://example.com/setup
Setup User and you are good to go !