mirror of
https://gitea.0xace.cc/ansible-galaxy/ddclient.git
synced 2024-11-25 08:16:42 +00:00
23 lines
631 B
YAML
23 lines
631 B
YAML
---
|
|
- 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
|