--- - name: Hello there - copy img2txt.py copy: src: img2txt.py dest: "{{ service_folder }}/img2txt.py" owner: "{{ autologin_user }}" group: "{{ autologin_user }}" mode: 0755 - name: Hello there - Download hello there get_url: url: "{{ hello_there_url }}" dest: "{{ service_folder }}/hello-there.png" mode: 0755 owner: "{{ autologin_user }}" group: "{{ autologin_user }}" - name: Hello there - get tty1 width shell: stty size -F /dev/tty1 | cut -d ' ' -f 2 register: tty1_width - name: Hello there - generate hello-there.txt shell: | {{ service_folder }}/venv/bin/python3 \ {{ service_folder }}/img2txt.py \ --input {{ service_folder }}/hello-there.png \ --output {{ service_folder }}/hello-there.txt \ --num_cols {{ tty1_width.stdout_lines[0] }} --mode simple ...