xoxys.certbot/tasks/plugins.yml

25 lines
711 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
2019-09-18 13:28:46 +00:00
loop:
2018-06-23 16:26:32 +00:00
- "{{ 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 }}"