Ansible YAML Playbook containing plays for preparing proxy.in.hacklab.to, the system responsible for forwarding HTTP-01 ACME Certbot challenges (LetsEncrypt) to internal hosts on the in.hacklab.to network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

proxy_deploy.yml 675B

1234567891011121314151617
  1. ---
  2. - hosts: proxy.in.hacklab.to
  3. tasks:
  4. ## Post-SSH Config [Install EPEL, Certbot, & Configure TLS Certificate]
  5. - name: Install EPEL Repo, nginx, etckeeper
  6. yum: name={{item}} state=installed
  7. with_items:
  8. - epel-release
  9. - nginx
  10. - etckeeper
  11. - command: systemctl enable --now nginx
  12. - command: firewall-cmd --zone=public --add-service=http --permanent
  13. - name: Customize nginx.conf
  14. command: sed -i "/^ server_name/c\ server_name *.in.hacklab.to;" /etc/nginx/nginx.conf
  15. - name: Start nginx
  16. command: systemctl restart nginx firewalld
  17. ## Post-execution, retrieve nginx.conf from etckeeper remote repo copy