Ansible role to install MetaTrader platform.
For project facts, key files and architecture mindmap, see FACTS.mmd. For execution flows and logic diagrams, see FLOWS.mmd. For firewall configuration, see .github/FIREWALL.md.
This role requires:
- Ansible
- Python
- Administrative/root access on target hosts
- Supported operating systems: Debian/Ubuntu (see FACTS.mmd)
To install this role from Ansible Galaxy, run the following command:
ansible-galaxy install ea31337.metatraderTo install this role, you can use the following terminal command:
ansible-galaxy install git+https://github.com/EA31337/ansible-role-metatrader.gitFor available variables,
check defaults/main.yml.
metatrader_setup_urlThe URL of the setup file to run.metatrader_versionPlatform version to install. Default 5.
- hosts: all
roles:
- role: ea31337.metatrader
vars:
metatrader_version: 5Steps to test role on Docker containers.
-
Install the current role by running the following commands in shell:
ansible-galaxy install -r requirements.yml jinja2 requirements-local.yml.j2 -D "pwd=$PWD" -o requirements-local.yml ansible-galaxy install -r requirements-local.ymlAlternatively, for development purposes, you can consider using symbolic link, e.g.
ln -vs "$PWD" ~/.ansible/roles/ea31337.metatrader
-
Ensure Docker service (e.g. Docker Desktop) is running.
-
Run playbook from
tests/:ansible-playbook -i tests/inventory/docker-containers.yml tests/playbooks/docker-containers.yml
To test using Molecule, run:
molecule testGNU GPL v3
See: LICENSE