summaryrefslogtreecommitdiff
path: root/test/integration/targets/builtin_vars_prompt/unsafe.yml
blob: 348ce152d6ee92e0f49c6b74a5834e899c6f6c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- name: Test vars_prompt unsafe
  hosts: testhost
  become: no
  gather_facts: no
  vars:
    whole: INVALID
  vars_prompt:
    - name: input
      prompt: prompting for variable
      unsafe: true

  tasks:
    - name:
      assert:
        that:
          - input != whole
          - input != 'INVALID'

    - debug:
        var: input