You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/lookup_url/tasks/ciphers.yml

23 lines
549 B
YAML

- vars:
url: https://{{ httpbin_host }}/get
block:
- name: test good cipher
debug:
msg: '{{ lookup("url", url) }}'
vars:
ansible_lookup_url_ciphers: ECDHE-RSA-AES128-SHA256
register: good_ciphers
- name: test bad cipher
debug:
msg: '{{ lookup("url", url) }}'
vars:
ansible_lookup_url_ciphers: ECDHE-ECDSA-AES128-SHA
ignore_errors: true
register: bad_ciphers
- assert:
that:
- good_ciphers is successful
- bad_ciphers is failed