Ansible Shell Command with Redirection Hangs

Greetings I’m trying to run the below command in Ansible:

- shell: 'toilet -f future.tlf --metal $(hostname -f|tr -d"." -f1-2) > /etc/motd.tail'
  ignore_errors: yes

I’m running ansible with -vvvv, but there is no useable output

Is this even possible to run such a command?

Source: linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.