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
|
2023-03-12 17:55:16 +00:00
|
|
|
block:
|
2023-03-12 17:49:31 +00:00
|
|
|
- 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
|