sudo apt-get install ansible host=127.0.0.1 cat<<EOF | ansible-playbook /dev/stdin - hosts: $host tasks: - name: "ping $host" ping: - name: "execute a shell command" shell: "date; whoami; df -h; set;" EOF # 127.0.0.1 : ok=3 changed=1 unreachable=0 failed=0 port=50000 cat<<EOF | ansible-playbook /dev/stdin - hosts: $host tasks: - name: check open port wait_for: port: "{{ item }}" state: started with_items: - ${port} EOF nc -l ${port} nc -lu ${port} # TODO UdP
mkdir -p molecule-test-folder && cd $_ python3 -m venv .venv source .venv/bin/activate pip install -U setuptools pip 'molecule' molecule --version # molecule, version 2.22 pip install -U setuptools pip 'molecule[docker]' molecule init role -r my-new-role cd my-new-role rm meta/ -rf molecule test --all