--- # This is an example playbook to execute Ansible tests. - name: Verify hosts: all gather_facts: false tasks: - name: Capture output of dynamic motd command: /usr/local/bin/dynmotd register: motd changed_when: false - debug: msg: "{{ motd.stdout.split('\n') }}" - name: Example assertion assert: that: true