geerlingguy / raspberry-pi-dramble

DEPRECATED - Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8
http://www.pidramble.com/
MIT License
1.66k stars 260 forks source link

Drupal VM's default ansible.cfg prevents output from ad-hoc from displaying #153

Closed geerlingguy closed 5 years ago

geerlingguy commented 5 years ago

From an email:

I started following your guide, residing on your desk at home, www.pidramble.com. At the page http://www.pidramble.com/wiki/setup/test-ansible where you show some other interesting commands to run with Ansible there is a small problem. I get no output from the commands df -h and free -m.

When running the commands I am standing in the raspberry-pi-dramble directory that I cloned from your repo https://github.com/geerlingguy/raspberry-pi-dramble - master branch. That means that I use the ansible.cfg in the raspberry-pi-dramble directory.

If I change the the following setting in ansible.cfg

bin_ansible_callbacks = True 

to

bin_ansible_callbacks = False

I get the presumed result

macbook:raspberry-pi-dramble$ ansible -i inventory all -a "free -m"
kube3 | CHANGED | rc=0 >>
              total        used        free      shared  buff/cache   available
Mem:            927          33         798           6          94         839
Swap:            99           0          99

kube2 | CHANGED | rc=0 >>
              total        used        free      shared  buff/cache   available
Mem:            927          33         827           6          65         839
Swap:            99           0          99

kube1 | CHANGED | rc=0 >>
              total        used        free      shared  buff/cache   available
Mem:            927          33         821          11          71         833
Swap:            99           0          99

kube4 | CHANGED | rc=0 >>
              total        used        free      shared  buff/cache   available
Mem:            927          33         815          17          78         828
Swap:            99           0          99

If I use the setting bin_ansible_callbacks = True I get the following output:

macbook:raspberry-pi-dramble$ ansible -i inventory all -a "free -m"

PLAY [Ansible Ad-Hoc] ********************************************************************************

TASK [command] ***************************************************************************************
changed: [kube4]
changed: [kube3]
changed: [kube2]
changed: [kube1]

PLAY RECAP *******************************************************************************************
kube1                      : ok=1    changed=1    unreachable=0    failed=0
kube2                      : ok=1    changed=1    unreachable=0    failed=0
kube3                      : ok=1    changed=1    unreachable=0    failed=0
kube4                      : ok=1    changed=1    unreachable=0    failed=0

So, basically making that default change should help make the wiki page instructions actually work :)