From feb54073adf225998916e0519d802cef44780014 Mon Sep 17 00:00:00 2001 From: "Jorge E. Gomez" Date: Wed, 30 Sep 2020 00:13:23 -0500 Subject: [PATCH] Try different location for python var in LXD --- hosts | 2 +- local.yml | 1 + roles/lxchost/tasks/main.yml | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) 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 }}."