---
- hosts: all
gather_facts: false
tasks:
- name: Load variables
include_vars:
dir: "{{ dokku_lib_root }}/data/ansible/autonomic.zone/vars/"
extensions:
- yml
# Note(decentral1se): disable while DNS is flapping
# - name: Prepare Python system dependencies
# become: true
# apt:
# name: python3-pip
# state: present
# - name: Install dns-lexicon system wide
# pip:
# name: ["cryptography==2.8", "dns-lexicon==3.3.19"]
# executable: /usr/bin/pip3
# - name: "Create {{ domain }} DNS entry"
# gandi_dns:
# gandi_rest_token: "{{ gandi_rest_token }}"
# domain: "{{ domain }}"
# ipv4: "{{ dokku_domain_ipv4 }}"
# - name: "Configure the {{ domain }} domain"
# dokku_domains:
# app: autonomic.zone
# domains:
# - "{{ domain }}"
- name: Ensure default app configured domains go away
dokku_domains:
app: autonomic.zone
domains:
- autonomic.zone.dokku.autonomic.zone
state: absent
- name: Configure the dokku app environment
dokku_config:
restart: false
config:
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
JEKYLL_HOST: "0.0.0.0"
JEKYLL_PORT: "{{ http_port }}"
JEKYLL_CONFIG: "{{ jekyll_config }}"
JEKYLL_ENV: "{{ jekyll_env }}"