Re: [ansible-project] Command line with pipes

2015-01-30 Thread Matt Martz
You will need to use the shell module instead of command. On Friday, January 30, 2015, Roman Dolgov wrote: > tasks: >- name: get clusters names > command: "ps axu | grep bin/post | egrep -o etc/postgresql/9.3/.* | > awk -F '/' '{print $4}'" > > > > That command doesn't work in ansible-

[ansible-project] Command line with pipes

2015-01-30 Thread Roman Dolgov
tasks: - name: get clusters names command: "ps axu | grep bin/post | egrep -o etc/postgresql/9.3/.* | awk -F '/' '{print $4}'" That command doesn't work in ansible-playbook, but works fine in shell, I got error about wrong arguments of ps tool. How I could use pipes with ansible comm