Skip to content

Commit

Permalink
Installs winetricks via ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 10, 2024
1 parent d50ce2c commit 5747dbb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions scripts/install_mt4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CWD="$(
pwd -P
)"
type ansible > /dev/null
type ansible-galaxy > /dev/null
type winetricks > /dev/null

# Load variables.
Expand All @@ -22,8 +23,9 @@ curl -s ifconfig.me/all.json
. "$CWD/.funcs.cmds.inc.sh"

echo "Installing platform..." >&2
ansible-playbook -c local -e metatrader_version=4
\ -i "localhost," /opt/ansible/install-platform.yml -v
ansible-galaxy install git+https://github.com/EA31337/ansible-role-metatrader.git,dev
ansible-playbook -c local -e metatrader_version=4 -e wine_install_winetricks=1 \
-i "localhost," /opt/ansible/install-platform.yml -v

. "$CWD"/.vars.inc.sh
if [ -n "$TERMINAL5_DIR" ]; then
Expand Down
6 changes: 4 additions & 2 deletions scripts/install_mt5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CWD="$(
pwd -P
)"
type ansible > /dev/null
type ansible-galaxy > /dev/null
type winetricks > /dev/null

# Load variables.
Expand All @@ -22,8 +23,9 @@ curl -s ifconfig.me/all.json
. "$CWD/.funcs.cmds.inc.sh"

echo "Installing platform..." >&2
ansible-playbook -c local -e metatrader_version=5
\ -i "localhost," /opt/ansible/install-platform.yml -v
ansible-galaxy install git+https://github.com/EA31337/ansible-role-metatrader.git,dev
ansible-playbook -c local -e metatrader_version=5 -e wine_install_winetricks=1 \
-i "localhost," /opt/ansible/install-platform.yml -v

. "$CWD"/.vars.inc.sh
if [ -n "$TERMINAL5_DIR" ]; then
Expand Down
3 changes: 2 additions & 1 deletion scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ case "$(uname -s)" in
ansible-galaxy install git+https://github.com/EA31337/ansible-role-mt-runner.git,dev

# Install platform.
ansible-playbook -i "localhost," -c local /opt/ansible/install-wine.yml -v
ansible-playbook -i "localhost," -c local /opt/ansible/install-wine.yml -v \
-e wine_install_winetricks=1
ansible-playbook -i "localhost," -c local /opt/ansible/install-xvfb.yml -v

# Install Charles proxy.
Expand Down

0 comments on commit 5747dbb

Please sign in to comment.