This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/ansible/pre-deploy.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

2020-03-30 15:24:33 +00:00
---
- hosts: all
gather_facts: false
tasks:
- name: Load variables
include_vars:
dir: "{{ dokku_lib_root }}/data/ansible/autonomic.zone/vars/"
extensions:
- yml
2020-03-31 11:07:00 +00:00
# TODO(decentral1se): re-enable once it is behaving again...
2020-03-31 11:03:23 +00:00
# - name: Prepare Python system dependencies
# become: true
# apt:
# name: python3-pip
# state: present
2020-03-30 15:24:33 +00:00
2020-03-31 11:03:23 +00:00
# - name: Install dns-lexicon system wide
# become: true
# pip:
# name: ["cryptography==2.8", "dns-lexicon==3.3.19"]
# executable: /usr/bin/pip3
# state: present
2020-03-30 15:24:33 +00:00
2020-03-31 11:03:23 +00:00
# - name: "Create {{ domain }} DNS entry"
# gandi_dns:
# gandi_rest_token: "{{ gandi_rest_token }}"
# domain: "{{ domain }}"
# ipv4: "{{ dokku_domain_ipv4 }}"
# state: present
2020-03-30 15:24:33 +00:00
- name: "Configure the {{ domain }} domain"
dokku_domains:
app: autonomic.zone
domains:
- "{{ domain }}"
state: present
- name: Configure the dokku app environment
dokku_config:
app: autonomic.zone
restart: false
config:
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"