Add IPv6 for music upload
This commit is contained in:
parent
38ae14e9c9
commit
a5aecd0b46
@ -49,4 +49,5 @@
|
||||
- role: "music/org"
|
||||
tags: "music:org"
|
||||
vars:
|
||||
music_org_nextcloud_ip_address: "{{ services_all_services.lrproxy.address }}"
|
||||
music_org_nextcloud_inet_address: "{{ services_all_services.lrproxy.inet_address }}"
|
||||
music_org_nextcloud_inet6_address: "{{ services_all_services.lrproxy.inet6_address }}"
|
||||
|
@ -17,7 +17,10 @@ argument_specs:
|
||||
music_user_nextcloud_domain:
|
||||
type: "str"
|
||||
required: true
|
||||
music_org_nextcloud_ip_address:
|
||||
music_org_nextcloud_inet_address:
|
||||
type: "str"
|
||||
required: true
|
||||
music_org_nextcloud_inet6_address:
|
||||
type: "str"
|
||||
required: true
|
||||
music_user_nextcloud_url:
|
||||
|
@ -13,10 +13,16 @@
|
||||
dest: "/usr/local/bin/nextcloud-upload"
|
||||
mode: 0755
|
||||
|
||||
- name: "resolve nextcloud-upload via hosts file"
|
||||
- name: "resolve nextcloud-upload via hosts file (inet)"
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/hosts"
|
||||
line: "{{ music_org_nextcloud_ip_address }} {{ music_user_nextcloud_domain }}"
|
||||
line: "{{ music_org_nextcloud_inet_address }} {{ music_user_nextcloud_domain }}"
|
||||
insertafter: "EOF"
|
||||
|
||||
- name: "resolve nextcloud-upload via hosts file (inet6)"
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/hosts"
|
||||
line: "{{ music_org_nextcloud_inet6_address }} {{ music_user_nextcloud_domain }}"
|
||||
insertafter: "EOF"
|
||||
|
||||
- block:
|
||||
|
Loading…
Reference in New Issue
Block a user