Hi
I have the following playbook.
In the environment.yml file I have a parameter “tls=true”
In the below task , In tghe URL I would put https if tls=true and http if false.
-
hosts: manager
vars_files: -
./environment.yml
tasks: -
name: test - check connectivity to API
get_url:
url: http://{{ server.hostname }}.{{ domain }}:9999/api//{{ cluster_name }}
dest: /tmp/
mode: 0777
force: yes
url_username: “{{ username }}”
url_password: “{{ password }}”
validate_certs: no
register: msg
ignore_errors: true
Thanks