#ad-hoc
3 commande(s) avec le tag #ad-hoc
Commandes partagées par la communauté CodeBox, copiables en un clic.
Ansible
Supprimer un fichier distant
Supprime un fichier sur les hôtes distants.
ansible all -m file -a "path=/tmp/fichier-temp.txt state=absent"
Ansible
Exécuter une commande shell
Exécute une commande shell sur tous les hôtes.
ansible all -m shell -a "uptime"
Ansible
Copier un fichier vers les hôtes
Copie un fichier local vers tous les hôtes distants.
ansible all -m copy -a "src=./fichier.conf dest=/etc/fichier.conf mode=0644"