File: issue_952__ask_become_pass.yml

package info (click to toggle)
python-mitogen 0.3.44-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,824 kB
  • sloc: python: 24,965; sh: 144; makefile: 74; perl: 19; ansic: 18
file content (26 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- name: regression/issue_952__ask_become_pass.yml
  hosts: test-targets[0]:&linux_containers
  gather_facts: false
  tags:
    - issue_952
  tasks:
    - name: Test --ask-become-pass
      delegate_to: localhost
      vars:
        ansible_python_interpreter: "{{ ansible_playbook_python }}"
      environment:
        ANSIBLE_STRATEGY:  "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
        ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
      expect:
        command: >
          ansible-playbook
          {% for inv in ansible_inventory_sources %}
          -i "{{ inv }}"
          {% endfor %}
          --ask-become-pass
          regression/become_test.yml
        chdir: ../
        responses:
          'BECOME password:': pw_required_password
      changed_when: false
      check_mode: false