mattez02-infra/files/certbot/nginx.sh

6 lines
351 B
Bash
Raw Permalink Normal View History

2024-04-18 14:50:57 +00:00
#!/bin/bash
2024-04-18 15:13:29 +00:00
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-05-05 15:44:06 +00:00
/opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-infra --accept-host-key --private-key ~/.ssh/id_rsa --vault-password-file ~/.ansible/vault.yml tasks.yml -t nginx &> /dev/null