This Ansible role is designed to bootstrap an edge server for Tapway VisionTrack/VehicleTrack applications. Follow the role's README for details.
Create inventory.yml file with your hosts list from the template below:
all:
hosts:
edge-server:
portainer_password: <password>
manager_cloud_api_url: <Tapway cloud API URL>
ansible_host: <host>
ansible_user: <user>
ansible_ssh_private_key_file: private_key # Should be commented if ansible_ssh_pass uncommented
# ansible_ssh_pass: <Uncomment and replace with a real value if SSH connection use password instead of the key>
# ansible_ssh_port: <Uncomment and replace with a real value if not default(22)>
# ansible_become_pass: <Uncomment and replace with a real value if the user needs a password to be a sudoer>ANSIBLE_CONFIG=./edge-server/tests/ansible.cfg ansible-playbook -i inventory.yml ./edge-server/tests/playbook.ymlBuild image
docker build -t gotapway/ansible-role-edge-server:local .docker run --rm \
-v ./inventory.yml:/edge-server/tests/inventory.yml \
-v <path to the key>:/edge-server/tests/private_key \
gotapway/ansible-role-edge-server:localdocker run --rm \
-v ./inventory.yml:/edge-server/tests/inventory.yml \
gotapway/ansible-role-edge-server:localCommit message style - Conventional Commits.
git clone git@github.com:tapway/ansible-role-edge-server.git
cd ansible-role-edge-server
make initRun make to list all available targets.
Execute make test for minimal docker image test or make -C edge-server tests for more tests.