Thanks, resolved this but now getting error at certbot
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "case \"true\" in\n \"true\") eff_arg=\"--eff-email\" ;;\n \"false\") eff_arg=\"--no-eff-email\" ;;\nesac\nexport PATH=$PATH:/usr/local/bin\ndocker-compose -f ./../docker-compose.yaml run --rm --entrypoint \"\\\n certbot certonly -n --webroot -w /var/www/certbot \\\n --email gaurav.sachan@company.in \\\n $eff_arg\n -d dev-remote-mdm.company.in \\\n --rsa-key-size 4096 \\\n --agree-tos\" certbot\n", "delta": "0:00:25.803330", "end": "2023-07-26 06:30:48.459470", "msg": "non-zero return code", "rc": 1, "start": "2023-07-26 06:30:22.656140", "stderr": "Starting remote-control_nginx_1 ... \r\n\u001b[1A\u001b[2K\rStarting remote-control_nginx_1 ... \u001b[32mdone\u001b[0m\r\u001b[1BPulling certbot (certbot/certbot:v1.4.0)...\nSaving debug log to /var/log/letsencrypt/letsencrypt.log\nPlugins selected: Authenticator webroot, Installer None\nObtaining a new certificate\nPerforming the following challenges:\nhttp-01 challenge for dev-remote-mdm.company.in\nUsing the webroot path /var/www/certbot for all unmatched domains.\nWaiting for verification...\nChallenge failed for domain dev-remote-mdm.company.in\nhttp-01 challenge for dev-remote-mdm.company.in\nCleaning up challenges\nSome challenges have failed.", "stderr_lines": ["Starting remote-control_nginx_1 ... ", "\u001b[1A\u001b[2K", "Starting remote-control_nginx_1 ... \u001b[32mdone\u001b[0m", "\u001b[1BPulling certbot (certbot/certbot:v1.4.0)...", "Saving debug log to /var/log/letsencrypt/letsencrypt.log", "Plugins selected: Authenticator webroot, Installer None", "Obtaining a new certificate", "Performing the following challenges:", "http-01 challenge for dev-remote-mdm.company.in", "Using the webroot path /var/www/certbot for all unmatched domains.", "Waiting for verification...", "Challenge failed for domain dev-remote-mdm.company.in", "http-01 challenge for dev-remote-mdm.company.in", "Cleaning up challenges", "Some challenges have failed."], "stdout": "v1.4.0: Pulling from certbot/certbot\nDigest: sha256:d0f6d1c43584e4dfdfe08ddc949cf40e7b56b316d03f36b4b2e436ad1e2d4c39\nStatus: Downloaded newer image for certbot/certbot:v1.4.0\nIMPORTANT NOTES:\n - The following errors were reported by the server:\n\n Domain: dev-remote-mdm.company.in\n Type: unauthorized\n Detail: 2606:4700::6812:8: Invalid response from\n
https://dev-remote-mdm.company.in:443/.well-known/acme-challenge/nIDT6QjEGBN_wpB9eGHLS2p25aabDzgyFdovMxvvXik:\n 404\n\n To fix these errors, please make sure that your domain name was\n entered correctly and the DNS A/AAAA record(s) for that domain\n contain(s) the right IP address.\n - Your account credentials have been saved in your Certbot\n configuration directory at /etc/letsencrypt. You should make a\n secure backup of this folder now. This configuration directory will\n also contain certificates and private keys obtained by Certbot so\n making regular backups of this folder is ideal.", "stdout_lines": ["v1.4.0: Pulling from certbot/certbot", "Digest: sha256:d0f6d1c43584e4dfdfe08ddc949cf40e7b56b316d03f36b4b2e436ad1e2d4c39", "Status: Downloaded newer image for certbot/certbot:v1.4.0", "IMPORTANT NOTES:", " - The following errors were reported by the server:", "", " Domain: dev-remote-mdm.company.in", " Type: unauthorized", " Detail: 2606:4700::6812:8: Invalid response from", "
https://dev-remote-mdm.company.in:443/.well-known/acme-challenge/nIDT6QjEGBN_wpB9eGHLS2p25aabDzgyFdovMxvvXik:", " 404", "", " To fix these errors, please make sure that your domain name was", " entered correctly and the DNS A/AAAA record(s) for that domain", " contain(s) the right IP address.", " - Your account credentials have been saved in your Certbot", " configuration directory at /etc/letsencrypt. You should make a", " secure backup of this folder now. This configuration directory will", " also contain certificates and private keys obtained by Certbot so", " making regular backups of this folder is ideal."]}