From 4a7d6ba349956fdfec584d1254b021c7cf531c3c Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 29 Mar 2020 14:33:48 +0200 Subject: [PATCH] Install dns-lexicon on the system properly --- ansible/pre-deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 880e0ef..735eb8e 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -8,12 +8,18 @@ extensions: - yml - - name: Install Python system dependencies + - name: Prepare Python system dependencies become: true apt: - name: python3-lexicon + name: python3-pip state: present + - name: Install dns-lexicon[gandi] system wide + become: true + pip: + name: "dns-lexicon[gandi]==3.3.19" + executable: /usr/bin/pip3 + - name: "Create {{ domain }} DNS entry" gandi_dns: gandi_rest_token: "{{ gandi_rest_token }}"