Step-by-step introduction on using the docker deployment of the get-started app from docker
python3 -m pip install ansible
Add this line to your .bashrc or .zshrc file:
export PATH=$PATH:$HOME/.local/bin
ansible-galaxy collection install community.docker
Change the remote_user and the private_key_file in the ansible.cfg
[defaults]
inventory = inventory
host_key_checking = False # optional: removes the SSH prompt
deprecation_warnings = False # optional: removes deprecation warning in playbooks
remote_user = <remote-user>
private_key_file = <remote-user-private-key-file>
You can set the desired Port in the deploy_docker.yaml Playbook by changing the variable for port_number.
Use this command:
python3 /home/<user>/.local/bin/ansible-playbook deploy_docker.yaml -e 'ansible_python_interpreter=/usr/bin/python3'
Open this adress in your browser:
<Remoteip>:<Port>
For me it was the 192.168.178.43:3000. It is a local adress.
Use this command:
python3 /home/<user>/.local/bin/ansible-playbook stop_docker.yaml -e 'ansible_python_interpreter=/usr/bin/python3'