Compare commits
3 Commits
83486be84e
...
4d4a913abe
Author | SHA1 | Date |
---|---|---|
David Thurstenson | 4d4a913abe | |
David Thurstenson | 0237b81f36 | |
David Thurstenson | 59b09ef819 |
|
@ -7,10 +7,18 @@
|
||||||
skip_existing: yes
|
skip_existing: yes
|
||||||
data: {{ linode_api_key }}
|
data: {{ linode_api_key }}
|
||||||
|
|
||||||
|
- name: Pull linode-dyndns container image
|
||||||
|
podman_image:
|
||||||
|
name: {{ image_name }}
|
||||||
|
pull: yes
|
||||||
|
state: present
|
||||||
|
tag: {{ image_tag }}
|
||||||
|
|
||||||
- name: Create and start linode-dyndns container
|
- name: Create and start linode-dyndns container
|
||||||
podman_container:
|
podman_container:
|
||||||
name: linode-dyndns_{{ subdomain }}
|
name: linode-dyndns_{{ subdomain }}
|
||||||
image: docker.io/kvllsvm/linode-dynamic-dns:latest
|
hostname: linode-dyndns_{{ subdomain }}
|
||||||
|
image: "{{ image_name }}:{{ image_tag }}"
|
||||||
state: started
|
state: started
|
||||||
restart_policy: always
|
restart_policy: always
|
||||||
network: host
|
network: host
|
||||||
|
@ -24,3 +32,5 @@
|
||||||
- name: FREQUENCY
|
- name: FREQUENCY
|
||||||
value: {{ update_frequency }}
|
value: {{ update_frequency }}
|
||||||
command: "/bin/sh -c 'export TOKEN=$(cat /run/secrets/linode_dns_apikey) && linode-dynamic-dns -s $FREQUENCY'"
|
command: "/bin/sh -c 'export TOKEN=$(cat /run/secrets/linode_dns_apikey) && linode-dynamic-dns -s $FREQUENCY'"
|
||||||
|
generate_systemd:
|
||||||
|
path: {{ systemd_system_unit_path }}
|
||||||
|
|
Loading…
Reference in New Issue