From 9b906cff1acae748f1662e52047cf1fb3567842b Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 8 Apr 2020 18:27:24 +0200 Subject: [PATCH] Re-enable DNS entry tasks --- ansible/pre-deploy.yml | 47 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index ae01f54..8d40f9d 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -8,33 +8,32 @@ extensions: - yml - # Note(decentral1se): disable while DNS is flapping - # - name: Prepare Python system dependencies - # become: true - # apt: - # name: python3-pip - # state: present + - name: Prepare Python system dependencies + become: true + apt: + name: python3-pip + state: present - # - name: Install dns-lexicon system wide - # become: true - # pip: - # name: ["cryptography==2.8", "dns-lexicon==3.3.19"] - # executable: /usr/bin/pip3 - # state: present + - name: Install dns-lexicon system wide + become: true + pip: + name: ["cryptography==2.8", "dns-lexicon==3.3.19"] + executable: /usr/bin/pip3 + state: present - # - name: "Create {{ domain }} DNS entry" - # gandi_dns: - # gandi_rest_token: "{{ gandi_rest_token }}" - # domain: "{{ domain }}" - # ipv4: "{{ dokku_domain_ipv4 }}" - # state: present + - name: "Create {{ domain }} DNS entry" + gandi_dns: + gandi_rest_token: "{{ gandi_rest_token }}" + domain: "{{ domain }}" + ipv4: "{{ dokku_domain_ipv4 }}" + state: present - # - name: "Configure the {{ domain }} domain" - # dokku_domains: - # app: autonomic.zone - # domains: - # - "{{ domain }}" - # state: present + - name: "Configure the {{ domain }} domain" + dokku_domains: + app: autonomic.zone + domains: + - "{{ domain }}" + state: present - name: Ensure default app configured domains go away dokku_domains: