This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/_ansible/roles/acme-dns/tasks/main.yml

25 lines
666 B
YAML
Raw Normal View History

---
- name: Deploy acme-dns
tags: acme-dns
block:
2023-06-13 20:36:13 +00:00
- import_tasks: create-service-directory.yml
- import_tasks: template-docker-compose.yml
- name: Setting the service config path
ansible.builtin.set_fact:
config_path: "{{ (service_path, 'config') | path_join }}"
2023-06-13 20:17:14 +00:00
2023-06-13 20:36:13 +00:00
- name: Create a service-config directory
ansible.builtin.file:
path: "{{ config_path }}"
state: directory
2023-06-13 20:17:14 +00:00
mode: "0700"
2023-06-13 20:36:13 +00:00
- name: Template config
ansible.builtin.template:
src: config.cfg.j2
dest: "{{ (config_path, 'config.cfg') | path_join }}"
2023-06-13 20:17:14 +00:00
mode: "0600"
2023-06-13 20:36:13 +00:00
- import_tasks: template-site-config.yml