diff --git a/host_vars/ash-1.yml b/host_vars/ash-1.yml new file mode 100644 index 0000000..cb0238d --- /dev/null +++ b/host_vars/ash-1.yml @@ -0,0 +1,20 @@ +$ANSIBLE_VAULT;1.1;AES256 +63396333353166316666616661613532383538393239303966633336363361613332343437376566 +3265326538643839326262386165623639353130656164320a323536333037353664646163386335 +33336631303336616636343538353865383531316561623166323762396262643930376231616638 +6638613961313364390a366564343030633665646666626165383334356364623761383032633963 +39393264353635626539393831323530366630343665623561653836303065633965316163386166 +63353836333639363765616164383133623330653762333762623632653535623438313831653365 +32393732306135323062666539663839656563306133393031643766626666323534626638653236 +63613832333833626439653034366336633534323131356262396138373938383039336263356531 +36323432653634366365663039336231343239626539393961636562366263653934613333633535 +61613937336336323135376663336364386533366537626133316130353862633862336530633339 +33663439663332653461643839353564333765646537363864653765303933393562383134316434 +38333134646362663837653461646661633539623734316635383163313363653730653763326262 +65326365383661306466663930646162343033383932633866383862626339366631633862346334 +36366161636663653136383439333461366264383533346461613631623730326437376537373638 +64323863333364613039613533393232373162346436613864336237336439353134313361653634 +64366663303265386663623139636131383432343238306631333436373939393832616262393232 +33376466613639396436396166363032653434653730643734356432653063303762333230323431 +34313338303838346466666463376636323433663038363935633362656164383762343531633563 +386432323237313039376531653362326337 diff --git a/hosts b/hosts index 95139ae..ecf4205 100644 --- a/hosts +++ b/hosts @@ -1,4 +1,5 @@ [ungrouped] jade ansible_host=172.16.0.25 ansible_user=alex jackson ansible_host=direct.jackson.alexav.gg ansible_user=root +ash-1 ansible_host=ash-1.landite.games ansible_user=root nas ansible_host=172.16.0.29 ansible_user=alex \ No newline at end of file diff --git a/main.yml b/main.yml index 3039d5e..abcba11 100644 --- a/main.yml +++ b/main.yml @@ -131,3 +131,11 @@ - name: Deploy Wings import_tasks: tasks/wings.yml tags: wings_deploy + +- hosts: ash-1 + + roles: + - role: traefik + tags: traefik_deploy + vars: + server: "ash-1" diff --git a/roles/traefik/tasks/main.yml b/roles/traefik/tasks/main.yml index 6614249..2644364 100644 --- a/roles/traefik/tasks/main.yml +++ b/roles/traefik/tasks/main.yml @@ -31,6 +31,11 @@ src: remote-dynamic.yml.j2 dest: "{{ data_dir }}/traefik/dynamic.yml" when: server == "jackson" +- name: Create Traefik Dynamic File (Remote 2) + template: + src: remote-ash-1.yml.j2 + dest: "{{ data_dir }}/traefik/dynamic.yml" + when: server == "ash-1" - name: Deploy Traefik Docker Container docker_container: diff --git a/roles/traefik/templates/local-dynamic.yml.j2 b/roles/traefik/templates/local-dynamic.yml.j2 index de2b7c2..ef15a15 100644 --- a/roles/traefik/templates/local-dynamic.yml.j2 +++ b/roles/traefik/templates/local-dynamic.yml.j2 @@ -48,8 +48,14 @@ http: - webSecure tls: certResolver: letsencrypt + wings: + rule: "Host(`wings.fntz.net`)" + service: wings + entryPoints: + - webSecure + tls: + certResolver: letsencrypt - services: plex: loadBalancer: @@ -74,4 +80,8 @@ http: iptv: loadBalancer: servers: - - url: "http://nas:8409/" \ No newline at end of file + - url: "http://nas:8409/" + wings: + loadBalancer: + servers: + - url: "http://nas:8090/" \ No newline at end of file diff --git a/roles/traefik/templates/remote-ash-1.yml.j2 b/roles/traefik/templates/remote-ash-1.yml.j2 new file mode 100644 index 0000000..75eb892 --- /dev/null +++ b/roles/traefik/templates/remote-ash-1.yml.j2 @@ -0,0 +1,15 @@ +http: + routers: + wings: + rule: "Host(`ash-1.landite.games`)" + service: wings + entryPoints: + - webSecure + tls: + certResolver: letsencrypt + + services: + wings: + loadBalancer: + servers: + - url: "http://5.161.219.50:8090" \ No newline at end of file