# stdout empty

**URL:** <https://forum.ansible.com/t/stdout-empty/18324>\
**Category:** Ansible Project\
**Created:** [May 28, 2015, 3:14am UTC](https://forum.ansible.com/t/stdout-empty/18324 "2015-05-28T03:14:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Tighe](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Patrick\_Tighe](https://forum.ansible.com/u/Patrick_Tighe)\
**Post date:** [May 28, 2015, 3:14am UTC](https://forum.ansible.com/t/stdout-empty/18324/1 "2015-05-28T03:14:17Z")

</div>

I’m new to ansible, and setting up a POC to run puppet for a specific orchestration task. However, when I run my agent runs, I’m not getting anything back in stdout, even when changes are set to occur. Here’s what’s in my playbook for this task.

- command: /opt/puppet/bin/puppet agent -t -v --tags=nrpe  
register: puppet\_agent\_result  
changed\_when: puppet\_agent\_result.rc == 2  
failed\_when: puppet\_agent\_result.rc != 2 and puppet\_agent\_result.rc != 0

- debug: var=puppet\_agent\_result

And the output from a run shows me:

TASK: [command /opt/puppet/bin/puppet agent -t -v] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [192.168.1.2]

TASK: [debug var=puppet\_agent\_result] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [192.168.1.2] =\> {  
“var”: {  
“puppet\_agent\_result”: {  
“changed”: false,  
“cmd”: [  
“/opt/puppet/bin/puppet”,  
“agent”,  
“-t”,  
“-v”,  
],  
“delta”: “0:02:16.392225”,  
“end”: “2015-05-28 02:58:04.757098”,  
“failed”: false,  
“failed\_when\_result”: false,  
“invocation”: {  
“module\_args”: “/opt/puppet/bin/puppet agent -t -v --tags=nrpe”,  
“module\_name”: “command”  
},  
“rc”: 0,  
“start”: “2015-05-28 02:55:48.364873”,  
“stderr”: “”,  
“stdout”: “”,  
“stdout\_lines”: ,  
“warnings”:   
}  
}  
}

Any help is greatly appreciated.

Pat
