Skip to content

benpdavis/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published