Skip to content

EA31337/ansible-role-metatrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

492 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Metatrader

License Check Molecule Pull Requests Test Edit

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.

Requirements

This role requires:

  • Ansible
  • Python
  • Administrative/root access on target hosts
  • Supported operating systems: Debian/Ubuntu (see FACTS.mmd)

Install

Install from Ansible Galaxy

To install this role from Ansible Galaxy, run the following command:

ansible-galaxy install ea31337.metatrader

Install from GitHub

To install this role, you can use the following terminal command:

ansible-galaxy install git+https://github.com/EA31337/ansible-role-metatrader.git

Role Variables

For available variables, check defaults/main.yml.

Variables

  • metatrader_setup_url The URL of the setup file to run.
  • metatrader_version Platform version to install. Default 5.

Dependencies

Example Playbook

- hosts: all
  roles:
    - role: ea31337.metatrader
      vars:
        metatrader_version: 5

Testing

Docker

Steps to test role on Docker containers.

  1. 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.yml

    Alternatively, for development purposes, you can consider using symbolic link, e.g.

    ln -vs "$PWD" ~/.ansible/roles/ea31337.metatrader
  2. Ensure Docker service (e.g. Docker Desktop) is running.

  3. Run playbook from tests/:

    ansible-playbook -i tests/inventory/docker-containers.yml tests/playbooks/docker-containers.yml

Molecule

To test using Molecule, run:

molecule test

License

GNU GPL v3

See: LICENSE

About

Ansible role to automate MetaTrader platform installation

Topics

Resources

License

Code of conduct

Stars

3 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors