mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-01-01 05:30:25 +00:00
Added role for dynamic dns
This commit is contained in:
23
roles/matrix-dynamic-dns/tasks/platform/centos.yml
Normal file
23
roles/matrix-dynamic-dns/tasks/platform/centos.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: Ensure yum packages are installed
|
||||
yum:
|
||||
name: epel-release
|
||||
state: latest
|
||||
update_cache: yes
|
||||
when: "run_setup|bool and matrix_dynamic_dns_enabled|bool"
|
||||
|
||||
- name: Ensure ddclient is installed
|
||||
yum:
|
||||
name: ddclient
|
||||
state: latest
|
||||
when: "run_setup|bool and matrix_dynamic_dns_enabled|bool"
|
||||
|
||||
- name: Ensure ddclient is uninstalled
|
||||
yum:
|
||||
name:
|
||||
- ddclient
|
||||
- epel-release
|
||||
state: absent
|
||||
when: "run_setup|bool and not matrix_dynamic_dns_enabled|bool"
|
||||
|
||||
Reference in New Issue
Block a user