Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Last active February 22, 2022 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infamousjoeg/325af92c96650eb583f0e0693020d98a to your computer and use it in GitHub Desktop.
Save infamousjoeg/325af92c96650eb583f0e0693020d98a to your computer and use it in GitHub Desktop.
How to Setup & Renew Let's Encrypt SSL on Ansible Automation Platform 2
#!/bin/bash
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf -y upgrade
sudo yum install -y snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo reboot now
#!/bin/bash
sudo snap install core
sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
#!/bin/bash
sudo automation-controller-service stop
sudo certbot certonly --standalone
sudo rm -f /etc/tower/tower.cert
sudo rm -f /etc/tower/tower.key
sudo ln -s /etc/letsencrypt/live/aap.joegarcia.dev/fullchain.pem /etc/tower/tower.cert
sudo ln -s /etc/letsencrypt/live/aap.joegarcia.dev/privkey.pem /etc/tower/tower.key
sudo automation-controller-service start
#!/bin/bash
sudo certbot renew
sudo automation-controller-service restart
@infamousjoeg
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment