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

27 lines
715 B
YAML
Raw Normal View History

---
2023-06-13 21:32:09 +00:00
- name: Deploy {{ svc.name }}
tags:
- acme-dns
- certificates
block:
2023-06-13 20:49:27 +00:00
- import_tasks: steps/create-service-directory.yml
- import_tasks: steps/template-docker-compose.yml
2023-06-13 20:36:13 +00:00
- 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:49:27 +00:00
- import_tasks: steps/template-site-config.yml