summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/register/can_register.yml
blob: da610101fd8bc153d57d5afa4fe3fc32e09b6d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- hosts: testhost
  gather_facts: false
  tasks:
    - name: test registering
      debug: msg='does nothing really but register this'
      register: debug_msg

    - name: validate registering
      assert:
        that:
          - debug_msg is defined

    - name: test registering skipped
      debug: msg='does nothing really but register this'
      when: false
      register: debug_skipped

    - name: validate registering
      assert:
        that:
          - debug_skipped is defined