create base path for dns plgin

This commit is contained in:
Robert Kaussow 2018-06-23 18:26:32 +02:00
parent 13ce719f11
commit b56931ce88
2 changed files with 11 additions and 6 deletions

View File

@ -34,6 +34,7 @@ certbot_command_arguments:
# Setup manual auth for core-networks api # Setup manual auth for core-networks api
certbot_core_networks_plugin_enabled: False certbot_core_networks_plugin_enabled: False
certbot_core_networks_plugin_repo: https://git.rknet.org/xoxys/certbot_dns_corenetworks.git certbot_core_networks_plugin_repo: https://git.rknet.org/xoxys/certbot_dns_corenetworks.git
certbot_core_networks_base_dir: {{ certbot_plugin_dir }}/certbot_dns_corenetworks
certbot_core_networks_plugin_version: master certbot_core_networks_plugin_version: master
certbot_core_networks_api_host: https://beta.api.core-networks.de/ certbot_core_networks_api_host: https://beta.api.core-networks.de/
certbot_core_networks_api_user: myuser certbot_core_networks_api_user: myuser

View File

@ -1,17 +1,21 @@
--- ---
- name: Setup core-networks dns plugin - name: Setup core-networks dns plugin
block: block:
- name: Create plugin directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ certbot_core_networks_base_dir }}"
- ~/.certbot_dns_corenetworks
- name: Clone repo to '{{ certbot_plugin_dir }}' - name: Clone repo to '{{ certbot_plugin_dir }}'
git: git:
repo: "{{ certbot_core_networks_plugin_repo }}" repo: "{{ certbot_core_networks_plugin_repo }}"
dest: "{{ certbot_plugin_dir }}" dest: "{{ certbot_core_networks_base_dir }}"
version: "{{ certbot_core_networks_plugin_version }}" version: "{{ certbot_core_networks_plugin_version }}"
- name: Create config directory
file:
path: "~/.certbot_dns_corenetworks"
state: directory
- name: Deploy plugin configuration - name: Deploy plugin configuration
template: template:
src: corenetworks/config.ini.j2 src: corenetworks/config.ini.j2