Quantcast
Channel: stdout – 100% Private Proxies – Fast, Anonymous, Quality, Unlimited USA Private Proxy!
Viewing all articles
Browse latest Browse all 5

Ansible display realtime shell stdout

$
0
0

I want see the realtime shell stdout, instead of registering in a variable and then display once it is completed.

Example Playbook – test.yml

- name: Testing RUN Shell Command   hosts: localhost   connection: local    tasks:   - name: Runnig Update     shell: apt update 

Default Output

$   ansible-playbook  test.yml   PLAY [Testing RUN Shell Command] ******************************************************************************************************  TASK [Gathering Facts] **************************************************************************************************************** ok: [localhost]  TASK [Runnig Update] ****************************************************************************************************************** changed: [localhost]  PLAY RECAP **************************************************************************************************************************** localhost                  : ok=2    changed=1    unreachable=0    failed=0     

But I want to see what it is doing like when we run the apt update in terminal

$   sudo apt update Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://dl.google.com/linux/chrome/deb stable Release                                                                             Hit:3 http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu bionic InRelease                                                               Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                            Hit:6 http://in.archive.ubuntu.com/ubuntu bionic InRelease                                                                             Hit:7 http://ppa.launchpad.net/canonical-chromium-builds/stage/ubuntu bionic InRelease                                                 ------OUTPUT REMOVED---------- 

I see that there is already discussion going on at github issue and look like that is not possible.

Is there any trick get the realtime stdout with help ansible Callback?

The post Ansible display realtime shell stdout appeared first on 100% Private Proxies - Fast, Anonymous, Quality, Unlimited USA Private Proxy!.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>