summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/get_url/tasks/ciphers.yml
blob: c7d9979d6d5443d73db5460e4a4935064f4dbbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- name: test good cipher
  get_url:
    url: https://{{ httpbin_host }}/get
    ciphers: ECDHE-RSA-AES128-SHA256
    dest: '{{ remote_tmp_dir }}/good_cipher_get.json'
  register: good_ciphers

- name: test bad cipher
  get_url:
    url: https://{{ httpbin_host }}/get
    ciphers: ECDHE-ECDSA-AES128-SHA
    dest: '{{ remote_tmp_dir }}/bad_cipher_get.json'
  ignore_errors: true
  register: bad_ciphers

- assert:
    that:
      - good_ciphers is successful
      - bad_ciphers is failed