Skip to content

Latest commit

 

History

History
executable file
·
25 lines (21 loc) · 754 Bytes

ansible.md

File metadata and controls

executable file
·
25 lines (21 loc) · 754 Bytes

Windows

windows - install wsl

wsl --install

windows - reboot and run wsl

wsl

wsl - ubuntu - ansible setup

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

wsl - ubuntu - install additional ansible packages

ansible-galaxy collection install containers.podman ansible-galaxy collection install community.postgresql

wsl - ubuntu - ansible push

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

wsl - ubuntu - ansible push with limit

ansible-playbook site.yml -i hosts --ask-pass --ask-become-pass --limit <host, group>

wsl - ubuntu - turn off ssh key checking

export ANSIBLE_HOST_KEY_CHECKING=False

wsl - ubuntu - turn on ssh key checking

unset ANSIBLE_HOST_KEY_CHECKING