summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/playbook/timeout.yml
blob: 442e13aed5bee2199c10a0a6d1023210f5cf6139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- hosts: localhost
  gather_facts: false
  tasks:
    - shell: sleep 100
      timeout: 1
      ignore_errors: true
      register: time

    - assert:
        that:
            - time is failed
            - '"The shell action failed to execute in the expected time frame" in time["msg"]'