diff options
| author | Kumar <kumar@kumardamani.xyz> | 2021-11-23 14:59:08 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2022-03-25 19:45:25 +0000 |
| commit | a857eb82ec9c4a79ad5e41462e2ab82c2660982e (patch) | |
| tree | 9ca51ddfb551322bd4d2fa3f949fa8898032632d /roles/ddclient/tasks/main.yaml | |
initial commit
Diffstat (limited to 'roles/ddclient/tasks/main.yaml')
| -rw-r--r-- | roles/ddclient/tasks/main.yaml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/ddclient/tasks/main.yaml b/roles/ddclient/tasks/main.yaml new file mode 100644 index 0000000..8deffc2 --- /dev/null +++ b/roles/ddclient/tasks/main.yaml @@ -0,0 +1,22 @@ +# https://notthebe.ee/raspi.html +--- + +- name: 'Install required apt packages' + apt: + name: + - 'ddclient' + state: 'present' + update_cache: true + +- name: 'Update ddclient conf' + template: + dest: '/etc/ddclient.conf' + src: 'ddclient.conf.j2' + mode: '644' + notify: 'restart ddclient' + +- name: 'Start ddclient' + systemd: + name: 'ddclient' + state: 'started' + enabled: true |
