diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-28 15:23:36 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-28 15:23:36 +0100 |
| commit | 4931117343a3105749b4a3698dd24c824a505441 (patch) | |
| tree | fd4c10ac16fc37e694bea8fced8eb5aea55cc966 /roles/domain-zone-management/tasks | |
| parent | 2a15e073bceaaf0765343dd57931c85cada6f89c (diff) | |
ovh-ify dyndns
Diffstat (limited to 'roles/domain-zone-management/tasks')
| -rw-r--r-- | roles/domain-zone-management/tasks/main.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/roles/domain-zone-management/tasks/main.yml b/roles/domain-zone-management/tasks/main.yml new file mode 100644 index 0000000..c3592e4 --- /dev/null +++ b/roles/domain-zone-management/tasks/main.yml @@ -0,0 +1,34 @@ +- name: Install jq + community.general.apk: + name: jq + +- name: Install OVHCloud CLI + ansible.builtin.shell: + cmd: curl -fsSL https://raw.githubusercontent.com/ovh/ovhcloud-cli/main/install.sh | sh + creates: /usr/bin/ovhcloud + +- name: Install OVHCloud CLI config + ansible.builtin.template: + src: ovh.conf + dest: /etc/ovh.conf + +- name: Create OVH domain zone append records directory + ansible.builtin.file: + path: "{{ ovh_domain_zone_append_records_directory }}" + state: directory + +- name: Create OVH domain zone replace records directory + ansible.builtin.file: + path: "{{ ovh_domain_zone_replace_records_directory }}" + state: directory + +- name: Create OVH domain zone log directory + ansible.builtin.file: + path: "{{ ovh_domain_zone_log_directory }}" + state: directory + +- name: Install OVHCloud domain zone management script + ansible.builtin.template: + src: update_ovhcloud_domain_zone + dest: /usr/bin/update_ovhcloud_domain_zone + mode: "755" |
