--- - name: Gets models for raspberry pies (raspberries) hosts: raspberries tasks: - name: Include the rpi_scripts role include_role: name: rpi_scripts - name: Execute model script ansible.builtin.command: chdir: /home/pi/bin cmd: ./model register: stdout - name: Display raspberry models debug: var=stdout.stdout