#ad-hoc

3 commande(s) avec le tag #ad-hoc

Commandes partagées par la communauté CodeBox, copiables en un clic.

Supprime un fichier sur les hôtes distants.

bash
ansible all -m file -a "path=/tmp/fichier-temp.txt state=absent"

Exécute une commande shell sur tous les hôtes.

bash
ansible all -m shell -a "uptime"

Copie un fichier local vers tous les hôtes distants.

bash
ansible all -m copy -a "src=./fichier.conf dest=/etc/fichier.conf mode=0644"