mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #871] Autoconfig hosts via ansible #737
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#737
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Secarius on GitHub (Feb 7, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/871
Describe the solution you'd like
We are using ansible to deploy hosts and configs, is there a way to have an ansible plugin to add proxy hosts via ansible?
Describe alternatives you've considered
a simple way to add an new proxy host via ansible playbook
@chaptergy commented on GitHub (May 12, 2021):
Maybe looking at the api could help you write an ansible script for this
@m-chingis commented on GitHub (Feb 15, 2022):
Hello @Secarius , I have almost the same task to accomplish. Did you find a suitable solution?
@Secarius commented on GitHub (Feb 15, 2022):
@m-chingis no sorry, i had no time to look into the api
@m-chingis commented on GitHub (Feb 28, 2022):
@Secarius in on of the threads related to this topic I found this repo https://github.com/Xantios/nginx-proxy-manager-assistant
it is written in JavaScript, so very easy to understand how to work with API. already tried to adapt as bash script. Later will make ansible wrapper.
@DenAV commented on GitHub (Sep 28, 2022):
Hello @chaptergy ,
I tried to create a script.
Almost everything worked, only I can't find how to enter email for certbot.
warning Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-1" --agree-tos --authenticator webroot --email "undefined" --preferred-challenges "dns,http" --domains "site-2.xxx.net" Saving debug log to /var/log/letsencrypt/letsencrypt.log Unable to register an account with ACME serverScript:
https://github.com/DenAV/nginx-proxy-manager-ansible
If I have created a first certificate with WebUI, then I can create the next certificates, no longer shows an error.
info Command: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-6" --agree-tos --authenticator webroot --email "undefined" --preferred-challenges "dns,http" --domains "site-2.xxx.net" success Requesting a certificate for site-2.xxx.netwhat have I missed?
@github-actions[bot] commented on GitHub (Mar 19, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Apr 30, 2025):
Issue was closed due to inactivity.