- 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
