Exécuter une commande sur tous les hotes avec ansible (pour debugger par exemple)
Par pepin le jeudi, juin 10 2021, 10:55 - Ansible - Lien permanent
> ansible -m shell -a "host google.fr" all proxy | CHANGED | rc=0 >> google.fr has address 172.217.19.227 google.fr has IPv6 address 2a00:1450:4007:80c::2003 google.fr mail is handled by 30 alt2.aspmx.l.google.com. google.fr mail is handled by 10 aspmx.l.google.com. google.fr mail is handled by 40 alt3.aspmx.l.google.com. google.fr mail is handled by 50 alt4.aspmx.l.google.com. google.fr mail is handled by 20 alt1.aspmx.l.google.com. openvas| CHANGED | rc=0 >> google.fr has address 172.217.19.227 google.fr has IPv6 address 2a00:1450:4007:80c::2003 google.fr mail is handled by 40 alt3.aspmx.l.google.com. google.fr mail is handled by 10 aspmx.l.google.com. google.fr mail is handled by 20 alt1.aspmx.l.google.com. google.fr mail is handled by 30 alt2.aspmx.l.google.com. google.fr mail is handled by 50 alt4.aspmx.l.google.com. nagios | CHANGED | rc=0 >> google.fr has address 172.217.19.227 google.fr has IPv6 address 2a00:1450:4007:80c::2003 google.fr mail is handled by 30 alt2.aspmx.l.google.com. google.fr mail is handled by 40 alt3.aspmx.l.google.com. google.fr mail is handled by 20 alt1.aspmx.l.google.com. google.fr mail is handled by 50 alt4.aspmx.l.google.com. google.fr mail is handled by 10 aspmx.l.google.com.