ddclient/tasks/main.yml

23 lines
631 B
YAML
Raw Normal View History

2023-03-12 17:49:31 +00:00
---
- name: Install ddclient (not containerized)
when: not ddclient_containerized
block:
- import_tasks: install.yml
- import_tasks: configure.yml
become: true
- name: Install ddclient (containerized)
when: ddclient_containerized
block:
- name: Merge volumes
set_fact:
ddclient_volumes: "{{ ddclient_volumes | default([]) + [item.key +':'+ item.value] }}"
loop: "{{ ddclient_default_volumes | dict2items }}"
- import_tasks: docker.yml
when: ddclient_container_engine == "docker"
- import_tasks: podman.yml
when: ddclient_container_engine == "podman"
become: true