Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 888 Bytes

README.md

File metadata and controls

29 lines (26 loc) · 888 Bytes

Windows

windows - install wsl

wsl --install

windows - reboot and run wsl

wsl

ansible

debian

debian - ansible setup

sudo apt update
sudo apt upgrade
sudo apt install ansible
sudo apt install sshpass

debian - ansible push

ansible-playbook site.yml -i hosts --ask-pass --ask-become-pass

debian - ansible push with limit

ansible-playbook site.yml -i hosts --ask-pass --ask-become-pass --limit test

debian - ansible push with limit and extra variables

ansible-playbook site.yml -i hosts --ask-pass --ask-become-pass --limit test --extra-vars='upgrade_packages=false setup_sudo=false deploykey=false pubkey=PUBLICKEY'

debian - ansible add ssh key to remote host

ssh-copy-id HOSTNAME

debian - turn off ssh key checking

export ANSIBLE_HOST_KEY_CHECKING=False

debian - turn on ssh key checking

unset ANSIBLE_HOST_KEY_CHECKING