Skip to content

EA31337/ansible-role-metatrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Metatrader

CodeRabbit PR Reviews License

Ansible role to install MetaTrader platform.

Requirements

This role requires:

  • Ansible
  • Python
  • Administrative/root access on target hosts
  • One of the following operating systems:
    • Alpine Linux
    • Debian/Ubuntu
    • NixOS or systems with Nix package manager

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.

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

Packages

No packages published

Contributors 3

  •  
  •  
  •