With ansible CLI can I output standard out?

53 views
Skip to first unread message

Vicki Kozel

unread,
Sep 17, 2015, 6:42:49 AM9/17/15
to Ansible Project, vko...@marinsoftware.com
I tried the --verbose option, but the same standard out that I can see when executing ansible-playbook is not there. Please advise.

Thank you!
Vicki


Brian Coca

unread,
Sep 18, 2015, 8:20:55 AM9/18/15
to Ansible Project, vko...@marinsoftware.com
can you be more specific? give an example of what you are running and
trying to get.


--
Brian Coca

Vicki Kozel

unread,
Sep 18, 2015, 7:56:52 PM9/18/15
to Ansible Project, vko...@marinsoftware.com
Hi Brian,
I am just talking about a standard output you get in the console when you run ansible playbook. Here's the sample command:

ansible-playbook -i myinventory.yml my_playbook.yml

and the sample output:

GATHERING FACTS ***************************************************************

ok: [service]

 

TASK: [./../../comp-service | do something (service servers OOS on LB) if ENV is production] ***

skipping: [service]

 

TASK: [./../../comp-service | debug msg=" do something {{ LOADBALANCER_IP }} (service servers OOS on LB)"] ***

skipping: [service]

 

TASK: [./../../comp-service | do something (service servers OOS on LB) if ENV is not production] ***

skipping: [service]

 

Now, this is available through running ansible-playbook command. But when running tower-cli - just like this - "tower-cli job launch --job-template JobTemplate --monitor --verbose --extra-vars extravars.yml" the standard out is not there. 

Brian Coca

unread,
Sep 18, 2015, 8:14:44 PM9/18/15
to Ansible Project, vko...@marinsoftware.com
for tower questions email sup...@ansible.com



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages