xoxys.certbot/tasks/plugins.yml

26 lines
718 B
YAML

---
- name: Setup core-networks dns plugin
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 }}'
git:
repo: "{{ certbot_core_networks_plugin_repo }}"
dest: "{{ certbot_core_networks_base_dir }}"
version: "{{ certbot_core_networks_plugin_version }}"
- name: Deploy plugin configuration
template:
src: corenetworks/config.ini.j2
dest: "~/.certbot_dns_corenetworks/config.ini"
mode: 0600
become: True
become_user: "{{ certbot_user }}"