############################# Windows 10 Pro + Docker
docker pull centos
docker run -it --name ANSIBLE -p 8080:2121 centos /bin/bash
yum update -y yum install -y openssh-server yum install -y openssh-clients yum install vim net-tools wget mtr dos2unix yum groupinstall 'Development Tools'
useradd nsvcadm mkdir -p /home/nsvcadm/.ssh touch /home/nsvcadm/.ssh/authorized_keys chown nsvcadm /home/nsvcadm/.ssh -R chmod 600 /home/nsvcadm/.ssh/authorized_keys
ssh-keygen -q -J "" -t rsa -f /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key UseDNS no
/usr/sbin/sshd -D &
passwd nsvcadm passwd root
CRTL + PQ --> sai e mantem o container rodando
cd /root/.ssh ssh-keygen -q -N "" -t dsa touch authorized_keys chmod 600 authorized_keys chown root authorized_keys
yum install ansible
echo 127.0.0.1 >> /etc/ansible/hosts
ansible all -m ping -u root -k
127.0.0.1 | SUCCESS => { "changed": false, "ping": "pong" }