Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add urlencode filter to potentially affected variables #29

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions roles/install_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
block:
- name: "Get siteid"
ansible.builtin.uri:
url: "{{ api_url }}sites?name={{ site }}&state=active"
url: "{{ api_url }}sites?name={{ site | urlencode }}&state=active"
method: GET
return_content: true
headers:
Expand All @@ -70,7 +70,7 @@

- name: "Get group id"
ansible.builtin.uri:
url: "{{ api_url }}groups?name={{ group }}&siteIds={{ siteid }}"
url: "{{ api_url }}groups?name={{ group | urlencode }}&siteIds={{ siteid }}"
method: GET
return_content: true
headers:
Expand Down Expand Up @@ -125,7 +125,7 @@

- name: "Fail if new client does not appear in management console"
ansible.builtin.uri:
url: "{{ api_url }}agents?siteIds={{ siteid }}&computerName={{ ansible_hostname }}&isActive=true"
url: "{{ api_url }}agents?siteIds={{ siteid }}&computerName={{ ansible_hostname | urlencode }}&isActive=true"
method: GET
return_content: true
headers:
Expand Down
Loading