Last active
February 22, 2022 22:03
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo snap install core | |
sudo snap refresh core | |
sudo snap install --classic certbot | |
sudo ln -s /snap/bin/certbot /usr/bin/certbot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo certbot renew | |
sudo automation-controller-service restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check this out on my blog post @ https://joegarcia.dev/issue-renew-lets-encrypt-ssl-for-ansible-automation-platform-2.