Hi there! What was the problem that you are trying to solve? I don’t see an actual question that we can answer.
> On Feb 7, 2022, at 8:29 AM, [email protected] <[email protected]> > wrote: > > 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] > <mailto:[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 > > <https://groups.google.com/d/msgid/ansible-project/d87db8f5-2d22-4d65-8d16-efa6a3041012n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/8D864036-7A90-4282-9EBC-E45F085A0AB8%40gmail.com.
