xoxys.certbot/tasks/plugins.yml

26 lines
718 B
YAML
Raw Normal View History

2018-06-23 14:27:01 +00:00
---
- name: Setup core-networks dns plugin
block:
2018-06-23 16:26:32 +00:00
- name: Create plugin directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ certbot_core_networks_base_dir }}"
- ~/.certbot_dns_corenetworks
2018-06-23 14:27:01 +00:00
- name: Clone repo to '{{ certbot_plugin_dir }}'
git:
repo: "{{ certbot_core_networks_plugin_repo }}"
2018-06-23 16:26:32 +00:00
dest: "{{ certbot_core_networks_base_dir }}"
2018-06-23 14:27:01 +00:00
version: "{{ certbot_core_networks_plugin_version }}"
- name: Deploy plugin configuration
template:
src: corenetworks/config.ini.j2
dest: "~/.certbot_dns_corenetworks/config.ini"
2018-06-23 14:44:20 +00:00
mode: 0600
2018-06-23 14:27:01 +00:00
become: True
become_user: "{{ certbot_user }}"