Ansible recipes for certbot for easy install and admin of Let's Encrypt
- Create inside the recipe folder, an
inventory/
folder with ahosts
file inside with a content like:
10.1.2.3 ansible_user=alvaro
ssh-copy-id
to the server- Either create a
sudo
file to avoid writing the password, or add-K
toansible-playbook
- Run ansible-playbook inside the recipe dir
ansible-playbook some-recipe.yml
If you don't want to create an inventory you can use an example file:
ansible-playbook certbot_install.yml -i ../inventory/hosts.example -K