Support custom subdomains and port

This commit is contained in:
LooseSeal2
2019-07-20 04:13:19 -07:00
parent 208a79f187
commit 9450034979
75 changed files with 104 additions and 75 deletions

View File

@@ -38,6 +38,35 @@
register: auth
ignore_errors: True
- name: Register Program Name
shell: 'cat /tmp/program_var'
register: program
ignore_errors: True
- name: Register ucname
shell: 'cat /var/plexguide/{{program.stdout}}.cname'
register: ucname
ignore_errors: True
- name: Register CName
set_fact:
cname: ""
- name: Set cname
set_fact:
cname: ",{{ucname.stdout}}.{{domain.stdout}}"
when: ucname is succeeded and ucname.stdout != ""
- name: Register External Port
shell: 'cat /var/plexguide/{{program.stdout}}.port'
register: ueport
ignore_errors: True
- name: Change extport
set_fact:
extport: "{{ueport.stdout}}"
when: ueport is succeeded and ueport.stdout != ""
- name: Remove {{pgrole}} Container
docker_container:
name: '{{pgrole}}'
@@ -90,7 +119,7 @@
- name: 'If Fact Matches - Enable TLD'
set_fact:
tldset: '{{domain.stdout}},www.{{domain.stdout}}'
tldset: ',{{domain.stdout}},www.{{domain.stdout}}'
when: 'toplevel.stdout == pgrole'
- debug: msg="TLDSET is now for {{toplevel.stdout}}"