summaryrefslogtreecommitdiff
path: root/test/integration/targets/get_url/tasks/ciphers.yml
blob: b8ebd9815cf3ee2c165f4f4ea2446fcf58f74250 (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
  uri:
    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