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 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d87db8f5-2d22-4d65-8d16-efa6a3041012n%40googlegroups.com.

Reply via email to