diff --git a/hosts b/hosts index 949cc07..9b25cf3 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,2 @@ localhost ansible_connection=local ansible_python_interpreter=python3 -nginx ansible_connection=lxd ansible_python_interpreter=python3 +nginx ansible_connection=lxd diff --git a/local.yml b/local.yml index ec0497c..d5dde4c 100644 --- a/local.yml +++ b/local.yml @@ -23,3 +23,4 @@ - nginxproxy vars: dominio: agofer.net + ansible_python_interpreter: python3 diff --git a/roles/lxchost/tasks/main.yml b/roles/lxchost/tasks/main.yml index f1b7628..b03a5b2 100644 --- a/roles/lxchost/tasks/main.yml +++ b/roles/lxchost/tasks/main.yml @@ -23,5 +23,3 @@ uri: url: 'https://api.dreamhost.com/?key={{ apikey }}&cmd=dns-add_record&record={{ container }}.{{ dominio }}&type=CNAME&value=externo.{{ dominio }}.' -# shell: -# cmd: curl "https://api.dreamhost.com/?key={{ apikey }}&cmd=dns-add_record&record={{ container }}.{{ dominio }}&type=CNAME&value=externo.{{ dominio }}."