Ansible
Jump to navigation
Jump to search
Install and Use
Using apt and older version
sudo apt install ansible sshpass
Or lets just use pip
python3 -m venv venv source ansible/bin/activate pip install -U pip pip install ansible
inventory.txt
[Windows] winhost.example.com [Windows:vars] ansible_user=<myuser> ansible_password=<mypass> ansible_connection=winrm # ansible_port=5985 # ansible_winrm_scheme=http ansible_port=5986 ansible_winrm_scheme=https ansible_winrm_server_cert_validation: ignore [Linux] linuxhost.example.com [Linux:vars] ansible_user=<my user> ansible_password=<my pass> ansible_connection=ssh
https://www.vgemba.net/ansible/Ansible-WinRM-Workgroup/
ansible 'Windows' --inventory-file inventory.txt -a "pwd"
ansible myhost.example.com -a "pwd" --ask-pass