mattez02-infra/files/certbot/nginx.sh

6 lines
295 B
Bash
Raw Normal View History

2024-04-18 14:50:57 +00:00
#!/bin/bash
2024-04-18 15:11:36 +00:00
env
2024-04-18 14:50:57 +00:00
echo -n "$CERTBOT_VALIDATION" > /root/nginx/html/.well-known/acme-challenge/$CERTBOT_TOKEN
2024-04-18 15:07:10 +00:00
mkdir -p /root/nginx/html/.well-known/acme-challenge
2024-04-18 15:01:30 +00:00
/opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-ansible --private-key ~/.ssh/id_rsa tasks.yml -t nginx &> /dev/null