Outils pour utilisateurs

Outils du site


tech:ansible_ssh_password_auth

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:ansible_ssh_password_auth [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:ansible_ssh_password_auth [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Ansible SSH CA}}
 +
 +# Ansible ssh password auth
 +
 +Voir:
 +* https://developers.redhat.com/cheat-sheets/ssh-remote-machines-using-ansible
 +
 +~~~yaml
 +---
 +ansible_user : <username to ssh into>
 +ansible_ssh_pass : <password for the username>
 +ansible_become_pass: <password for becoming the root>
 +~~~
 +
 +`hosts`
 +~~~ini
 +[plop]
 +192.168.134.227         ansible_ssh_user=jean ansible_ssh_pass='P@ssw0rd' ansible_become_pass='P@ssw0rd'
 +~~~
 +
 +~~~bash
 +ansible -i hosts -m ping plop
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki