20 lines
555 B
YAML
20 lines
555 B
YAML
|
---
|
||
|
- name: Set config path
|
||
|
ansible.builtin.set_fact:
|
||
|
config_path: "{{ (service_path, 'config') | path_join }}"
|
||
|
- name: Create config directory
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ config_path }}"
|
||
|
state: directory
|
||
|
mode: "0755"
|
||
|
- name: Copy the acme-dns-accounts
|
||
|
ansible.builtin.template:
|
||
|
src: "json.j2"
|
||
|
dest: "{{ (config_path, 'acme-dns-accounts.json') | path_join }}"
|
||
|
mode: "0644"
|
||
|
- name: Copy the hook script
|
||
|
ansible.builtin.copy:
|
||
|
src: "hook.sh"
|
||
|
dest: "{{ (config_path, 'hook.sh') | path_join }}"
|
||
|
mode: "0755"
|