Subject: [ansible-project] custom logging for one role


I am currently getting the information right now with a sed command, but am
curious if there is another way via ansible to pipe the output for this one
play to another log:

crontab command:
echo "=fetch_start=" >> /var/log/ansible.log; ansible-playbook /some/path/
main.yml -f 1 -e host=production; echo "=fetch_stop=" >> /var/log/ansible.
log

sed:
sed -n '/\=fetch_start\=/,/\=fetch_stop\=/p' /var/log/ansible.log > /var/log
/fetch_users-ansible.log

On Tuesday, July 3, 2018 at 3:05:28 PM UTC-6, John Harmon wrote:

--
To post to this group, send email to [EMAIL PROTECTED].