remove tasks that aren't acutally part of creating a webpush subscription
This commit is contained in:
parent
1646c1ddc0
commit
dfd5d4af55
1 changed files with 0 additions and 38 deletions
|
|
@ -56,44 +56,6 @@
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ channel_id }}"
|
msg: "{{ channel_id }}"
|
||||||
|
|
||||||
- name: "Subscribe to info for S4"
|
|
||||||
ansible.builtin.uri:
|
|
||||||
url: "https://www.zuginfo.nrw/gate/?requestId={{ mysterious_id }}&hciMethod=SubscrCreate&hciVersion=1.24&hciClientType=WEB&hciClientVersion=10104&aid={{ aid }}&rnd={{ unix_time_millis }}"
|
|
||||||
method: POST
|
|
||||||
body: "{{ lookup('ansible.builtin.template','subscription_s4.json.j2') }}"
|
|
||||||
headers:
|
|
||||||
Accept-Encoding: gzip, deflate, br, zstd
|
|
||||||
Content-Type: application/json
|
|
||||||
Origin: https://www.zuginfo.nrw/
|
|
||||||
Referer: https://www.zuginfo.nrw/
|
|
||||||
TE: trailers
|
|
||||||
register: subscribe_s4
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
subscription_id: "{{ subscribe_s4.json.svcResL[0].res.subscrId }}"
|
|
||||||
|
|
||||||
- name: "Print subscription_id"
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: "{{ subscription_id }}"
|
|
||||||
|
|
||||||
- name: "Verify Subscription"
|
|
||||||
ansible.builtin.uri:
|
|
||||||
url: "https://www.zuginfo.nrw/gate/?requestId={{ mysterious_id }}&hciMethod=SubscrDetails&hciVersion=1.24&hciClientType=WEB&hciClientVersion=10104&aid={{ aid }}&rnd={{ unix_time_millis }}"
|
|
||||||
method: POST
|
|
||||||
body: "{{ lookup('ansible.builtin.template','verify_subscription.json.j2') }}"
|
|
||||||
headers:
|
|
||||||
Accept-Encoding: gzip, deflate, br, zstd
|
|
||||||
Content-Type: application/json
|
|
||||||
Origin: https://www.zuginfo.nrw/
|
|
||||||
Referer: https://www.zuginfo.nrw/
|
|
||||||
TE: trailers
|
|
||||||
register: verify_subscription
|
|
||||||
|
|
||||||
- name: "Result: Verify Subscription"
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: "{{ verify_subscription }}"
|
|
||||||
|
|
||||||
|
|
||||||
- name: "Print important IDs"
|
- name: "Print important IDs"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg:
|
msg:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue