How do I output the full log of Ansible in Teamcity?


There are 3 servers with Teamcity, Ansible and test environment. I need to do so through Teamcity remotely performed the role on Ansible test environment. For this, I push the ssh keys between Teamcity and Ansible, Teamcity made in Build Configuration with step 1, which fulfills the script connect via ssh with the following parameters:
ssh -T-p port user@ansible.hostname ansible-playbook /path/to.yml --check

In yml you have specified a host in the test environment. When you run a Build in TC , the command works, but the Build Log is not written the complete output for some reason he only brought me [Deprecation Warnings] , there in the course of the implementation of the playbook they are, but the rest no. I know that TC has a plugin for Ansible, but it's been around for years have not been updated, and there are even Python scripts with Callbacks.
What would you recommend to do?
July 9th 19 at 12:49
1 answer
July 9th 19 at 12:51
Try to add redirection...
At the end of the invoked commands:
if the log will disappear completely in the opposite direction =) - giuseppe25 commented on July 9th 19 at 12:54
ssh ololo.local "cd /home/ololo/ && some command 2>&1" - giuseppe25 commented on July 9th 19 at 12:57
No it does not work with the redirect (there and back) stderr to stdout, it is generally in the Build Log for this step says nothing, and no special logic. - Naomie.Lemke31 commented on July 9th 19 at 13:00
There is another thing that running this build on a local agent where Teamcity server is installed. - Naomie.Lemke31 commented on July 9th 19 at 13:03
In jenkins I have so works. Apparently timsit not. - giuseppe25 commented on July 9th 19 at 13:06

Find more questions by tags LinuxSystem administrationAnsibleTeamCity