From 923fd9b9d4fc772ac0099853ddbc4e47e9126104 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Wed, 26 Oct 2022 19:17:57 -0700 Subject: [PATCH 01/14] init truffle --- ansible/roles/truffle/tasks/main.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ansible/roles/truffle/tasks/main.yml diff --git a/ansible/roles/truffle/tasks/main.yml b/ansible/roles/truffle/tasks/main.yml new file mode 100644 index 0000000..e69de29 From 64597a7d693fdd3d698842043b9de569aaa018bc Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Wed, 26 Oct 2022 21:19:27 -0700 Subject: [PATCH 02/14] add common dependencies that need their own repositories --- ansible/roles/common/tasks/install-node.yml | 24 +++++++++++++++++++++ ansible/roles/common/tasks/main.yml | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 ansible/roles/common/tasks/install-node.yml create mode 100644 ansible/roles/common/tasks/main.yml diff --git a/ansible/roles/common/tasks/install-node.yml b/ansible/roles/common/tasks/install-node.yml new file mode 100644 index 0000000..1d75c57 --- /dev/null +++ b/ansible/roles/common/tasks/install-node.yml @@ -0,0 +1,24 @@ +- name: Remove node + become_user: root + become: true + apt: + state: absent + update_cache: yes + cache_valid_time: 604800 + pkg: + - nodejs + +- name: add node apt repository + become_user: root + become: true + ansible.builtin.shell: "curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - " + +- name: Install node + become_user: root + become: true + apt: + state: present + update_cache: yes + cache_valid_time: 604800 + pkg: + - nodejs diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml new file mode 100644 index 0000000..5232406 --- /dev/null +++ b/ansible/roles/common/tasks/main.yml @@ -0,0 +1,3 @@ +- import_tasks: install-node.yml + tags: + - install-node From 49407d19380ee95359d6cc577095b24a5b69e397 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Wed, 26 Oct 2022 23:13:21 -0700 Subject: [PATCH 03/14] add manual inventory example --- inventory/hosts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 inventory/hosts diff --git a/inventory/hosts b/inventory/hosts new file mode 100644 index 0000000..1e4ad7d --- /dev/null +++ b/inventory/hosts @@ -0,0 +1,5 @@ +[localhost] +127.0.0.1 ansible_connection=local + +[vagrant] +192.168.1.10 From 3d892c769636cbf00e33f4b4cb85cdf16bc07d2a Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 18:45:54 -0700 Subject: [PATCH 04/14] add evm-tools playbook, inventory and config --- ansible/ansible.cfg | 12 ++++++++++++ {inventory => ansible/inventory}/hosts | 2 +- ansible/plays/evm-tools.yml | 7 +++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 ansible/ansible.cfg rename {inventory => ansible/inventory}/hosts (62%) create mode 100644 ansible/plays/evm-tools.yml diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg new file mode 100644 index 0000000..3ae14af --- /dev/null +++ b/ansible/ansible.cfg @@ -0,0 +1,12 @@ +[defaults] + +# some basic default values... + +interpreter_python = auto +inventory = ./inventory/ +roles_path = ./roles/ +stdout_callback = default + +#[ssh_connection] +#ssh_args=-o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r -o ForwardAgent=yes + diff --git a/inventory/hosts b/ansible/inventory/hosts similarity index 62% rename from inventory/hosts rename to ansible/inventory/hosts index 1e4ad7d..e6849b8 100644 --- a/inventory/hosts +++ b/ansible/inventory/hosts @@ -2,4 +2,4 @@ 127.0.0.1 ansible_connection=local [vagrant] -192.168.1.10 +10.0.0.159:3322 ansible_user=ziion diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml new file mode 100644 index 0000000..2e35954 --- /dev/null +++ b/ansible/plays/evm-tools.yml @@ -0,0 +1,7 @@ +--- +- hosts: vagrant + vars: + roles: + - common + - truffle + From bca67ae15a92980b009cb8e0c89db3500be0478c Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 18:46:29 -0700 Subject: [PATCH 05/14] add missing curl dependency --- ansible/roles/common/tasks/install-node.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/roles/common/tasks/install-node.yml b/ansible/roles/common/tasks/install-node.yml index 1d75c57..ee50de3 100644 --- a/ansible/roles/common/tasks/install-node.yml +++ b/ansible/roles/common/tasks/install-node.yml @@ -1,3 +1,13 @@ +- name: Install curl + become_user: root + become: true + apt: + state: present + update_cache: yes + cache_valid_time: 604800 + pkg: + - curl + - name: Remove node become_user: root become: true From 1bed7191d01eb52b90bbe8df36bf91bd2dbebca4 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 18:51:57 -0700 Subject: [PATCH 06/14] play level become true to fix https://github.com/geerlingguy/ansible-role-docker/pull/151 --- ansible/plays/evm-tools.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index 2e35954..0581fc2 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -1,7 +1,12 @@ --- - hosts: vagrant vars: + yarn_clean_install: true + yarn_version: latest + become: true roles: - common +# - fubarhouse.yarn + - geerlingguy.docker - truffle From 7e41b62a1a6ed0b9d0d9b6be388c1c38d68eb8a7 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 18:52:25 -0700 Subject: [PATCH 07/14] add galaxy dependencies --- ansible/roles/requirements.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ansible/roles/requirements.yml diff --git a/ansible/roles/requirements.yml b/ansible/roles/requirements.yml new file mode 100644 index 0000000..203e464 --- /dev/null +++ b/ansible/roles/requirements.yml @@ -0,0 +1,9 @@ +--- +# ansible-galaxy install -r roles/requirements.yml + +- src: fubarhouse.yarn +# version: latest + name: fubarhouse.yarn + +- src: geerlingguy.docker + name: geerlingguy.docker From 8077c51cf77e3526f5d0ddc7b9a40ed830aeb2c0 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 19:19:53 -0700 Subject: [PATCH 08/14] remove outdated information --- ansible/plays/evm-tools.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index 0581fc2..a72c23e 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -1,12 +1,11 @@ --- - hosts: vagrant vars: - yarn_clean_install: true + yarn_clean_install: false yarn_version: latest become: true roles: - common -# - fubarhouse.yarn - geerlingguy.docker - truffle From 6bfbc0a68a5b23ab477162e21337267841d24781 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 21:59:13 -0700 Subject: [PATCH 09/14] add ganache fixes to nodejs and yarn. update requirements.yml, add two install methods for ganache, fixes to remix --- ansible/plays/evm-tools.yml | 7 ++++--- ansible/roles/common/tasks/install-node.yml | 12 +++++++++--- ansible/roles/ganache/tasks/install-via-docker.yml | 8 ++++++++ ansible/roles/ganache/tasks/install-via-npm.yml | 7 +++++++ ansible/roles/ganache/tasks/main.yml | 7 +++++++ ansible/roles/remix/tasks/main.yml | 9 +++++++++ ansible/roles/requirements.yml | 5 ++--- ansible/roles/truffle/tasks/main.yml | 7 +++++++ 8 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 ansible/roles/ganache/tasks/install-via-docker.yml create mode 100644 ansible/roles/ganache/tasks/install-via-npm.yml create mode 100644 ansible/roles/ganache/tasks/main.yml create mode 100644 ansible/roles/remix/tasks/main.yml diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index a72c23e..9e6ea52 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -1,11 +1,12 @@ --- - hosts: vagrant vars: - yarn_clean_install: false - yarn_version: latest + docker_users: + - ziion become: true roles: - common - geerlingguy.docker - truffle - + - ganache + - remix diff --git a/ansible/roles/common/tasks/install-node.yml b/ansible/roles/common/tasks/install-node.yml index ee50de3..2477827 100644 --- a/ansible/roles/common/tasks/install-node.yml +++ b/ansible/roles/common/tasks/install-node.yml @@ -8,7 +8,7 @@ pkg: - curl -- name: Remove node +- name: Remove nodejs become_user: root become: true apt: @@ -18,12 +18,12 @@ pkg: - nodejs -- name: add node apt repository +- name: add nodejs apt repository become_user: root become: true ansible.builtin.shell: "curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - " -- name: Install node +- name: Install nodejs become_user: root become: true apt: @@ -32,3 +32,9 @@ cache_valid_time: 604800 pkg: - nodejs + +- name: + become_user: root + become: true + ansible.builtin.shell: "corepack enable" + diff --git a/ansible/roles/ganache/tasks/install-via-docker.yml b/ansible/roles/ganache/tasks/install-via-docker.yml new file mode 100644 index 0000000..b8cb44b --- /dev/null +++ b/ansible/roles/ganache/tasks/install-via-docker.yml @@ -0,0 +1,8 @@ +- name: Create ganache + community.docker.docker_container: + name: ganache + image: trufflesuite/ganache:v7.1.0 + state: started + restart: true + ports: + - "127.0.0.1:8545:8545" # discuss if this should be bind all gitlab.com/reel/ziion-tools/-/issues/4 diff --git a/ansible/roles/ganache/tasks/install-via-npm.yml b/ansible/roles/ganache/tasks/install-via-npm.yml new file mode 100644 index 0000000..2e96c71 --- /dev/null +++ b/ansible/roles/ganache/tasks/install-via-npm.yml @@ -0,0 +1,7 @@ +- name: Install ganache + community.general.npm: + name: ganache + version: '7.1.0' + path: /usr/local/ganache + global: true + state: present diff --git a/ansible/roles/ganache/tasks/main.yml b/ansible/roles/ganache/tasks/main.yml new file mode 100644 index 0000000..410e7dc --- /dev/null +++ b/ansible/roles/ganache/tasks/main.yml @@ -0,0 +1,7 @@ +--- + +#- import_tasks: install-via-npm.yml +# tags: install-via-npm + +- import_tasks: install-via-docker.yml + tags: install-via-docker diff --git a/ansible/roles/remix/tasks/main.yml b/ansible/roles/remix/tasks/main.yml new file mode 100644 index 0000000..62097ea --- /dev/null +++ b/ansible/roles/remix/tasks/main.yml @@ -0,0 +1,9 @@ +- name: Create remix-ide + community.docker.docker_container: + name: remix-ide + image: remixproject/remix-ide + state: started + restart: true + ports: + # Publish container port 80 as host port 8080 + - "127.0.0.1:8080:80" diff --git a/ansible/roles/requirements.yml b/ansible/roles/requirements.yml index 203e464..8be8557 100644 --- a/ansible/roles/requirements.yml +++ b/ansible/roles/requirements.yml @@ -1,9 +1,8 @@ --- # ansible-galaxy install -r roles/requirements.yml +collections: +- community.docker -- src: fubarhouse.yarn -# version: latest - name: fubarhouse.yarn - src: geerlingguy.docker name: geerlingguy.docker diff --git a/ansible/roles/truffle/tasks/main.yml b/ansible/roles/truffle/tasks/main.yml index e69de29..b1df5b3 100644 --- a/ansible/roles/truffle/tasks/main.yml +++ b/ansible/roles/truffle/tasks/main.yml @@ -0,0 +1,7 @@ +- name: Install truffle + community.general.npm: + name: truffle + version: '5.5.14' + path: /usr/local/truffle + global: true + state: present From 658d2c105d64b83349f27441585502284ffc3549 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 22:01:50 -0700 Subject: [PATCH 10/14] ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2704d41 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +roles/geerlingguy.docker/ From d48335860d06625078d11a4d0654de7744220900 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Thu, 27 Oct 2022 22:02:20 -0700 Subject: [PATCH 11/14] ignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2704d41..01924ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -roles/geerlingguy.docker/ +ansible/roles/geerlingguy.docker/ From 27743c72760a0b6d2f064e12620beb4900fc360f Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Fri, 28 Oct 2022 01:24:14 -0700 Subject: [PATCH 12/14] add brownie, solcjs, solc-select, bashrc vars, pip3, py3-venv, operating system user var --- CONTRIBUTING.md | 2 +- ansible/plays/evm-tools.yml | 6 ++++++ .../roles/brownie/tasks/install-python3venv.yml | 9 +++++++++ ansible/roles/brownie/tasks/main.yml | 16 ++++++++++++++++ ansible/roles/common/tasks/install-bashrc.yml | 6 ++++++ ansible/roles/common/tasks/install-pip.yml | 9 +++++++++ ansible/roles/common/tasks/main.yml | 9 +++++++++ ansible/roles/solc-select/tasks/main.yml | 4 ++++ ansible/roles/solc/tasks/main.yml | 7 +++++++ 9 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/brownie/tasks/install-python3venv.yml create mode 100644 ansible/roles/brownie/tasks/main.yml create mode 100644 ansible/roles/common/tasks/install-bashrc.yml create mode 100644 ansible/roles/common/tasks/install-pip.yml create mode 100644 ansible/roles/solc-select/tasks/main.yml create mode 100644 ansible/roles/solc/tasks/main.yml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e4ae87b..168ffff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,4 +13,4 @@ crowdfunding page: *** ## 1st Round: Primary Sponsors (400,000 SATS or more): - Bryan Black (Website: https://bringyourwallet.com) + Bryan Black (Website: https://example.com) diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index 9e6ea52..5fb6272 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -1,6 +1,9 @@ --- - hosts: vagrant vars: + ziionos_user: ziion + bash_line: "export PATH=$PATH:$HOME/.local/bin" # pipx support for user install + bash_line_state: present docker_users: - ziion become: true @@ -8,5 +11,8 @@ - common - geerlingguy.docker - truffle + - solc + - solc-select + - brownie - ganache - remix diff --git a/ansible/roles/brownie/tasks/install-python3venv.yml b/ansible/roles/brownie/tasks/install-python3venv.yml new file mode 100644 index 0000000..c1626b6 --- /dev/null +++ b/ansible/roles/brownie/tasks/install-python3venv.yml @@ -0,0 +1,9 @@ +- name: Install python3.10-venv + become_user: root + become: true + apt: + state: present + update_cache: yes + cache_valid_time: 604800 + pkg: + - python3.10-venv diff --git a/ansible/roles/brownie/tasks/main.yml b/ansible/roles/brownie/tasks/main.yml new file mode 100644 index 0000000..3a3f4b2 --- /dev/null +++ b/ansible/roles/brownie/tasks/main.yml @@ -0,0 +1,16 @@ +- name: Install pipx package for brownie + become_user: "{{ ziionos_user }}" + ansible.builtin.pip: + name: pipx + extra_args: --user + +- import_tasks: install-python3venv.yml + tags: + - install-python3venv + +- name: pipx install eth-brownie + become_user: "{{ ziionos_user }}" + become: true + ansible.builtin.shell: "/home/{{ ziionos_user }}/.local/bin/pipx install eth-brownie==1.18.2" + args: + executable: /bin/bash diff --git a/ansible/roles/common/tasks/install-bashrc.yml b/ansible/roles/common/tasks/install-bashrc.yml new file mode 100644 index 0000000..0e1917c --- /dev/null +++ b/ansible/roles/common/tasks/install-bashrc.yml @@ -0,0 +1,6 @@ +- name: Configure bashrc lines + lineinfile: + path: "/home/{{ ziionos_user }}/.bashrc" + line: "{{ bash_line }}" + state: "{{ bash_line_state |default('present') }}" + backup: yes diff --git a/ansible/roles/common/tasks/install-pip.yml b/ansible/roles/common/tasks/install-pip.yml new file mode 100644 index 0000000..ecf0186 --- /dev/null +++ b/ansible/roles/common/tasks/install-pip.yml @@ -0,0 +1,9 @@ +- name: Install pip3 + become_user: root + become: true + apt: + state: present + update_cache: yes + cache_valid_time: 604800 + pkg: + - python3-pip diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index 5232406..e339554 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -1,3 +1,12 @@ +--- - import_tasks: install-node.yml tags: - install-node + +- import_tasks: install-pip.yml + tags: + - install-pip + +- import_tasks: install-bashrc.yml + tags: + - install-bashrc diff --git a/ansible/roles/solc-select/tasks/main.yml b/ansible/roles/solc-select/tasks/main.yml new file mode 100644 index 0000000..2f63a52 --- /dev/null +++ b/ansible/roles/solc-select/tasks/main.yml @@ -0,0 +1,4 @@ +- name: Install solc-select python package + ansible.builtin.pip: + name: solc-select +# name: solc-select==1.0.1 diff --git a/ansible/roles/solc/tasks/main.yml b/ansible/roles/solc/tasks/main.yml new file mode 100644 index 0000000..8794bb2 --- /dev/null +++ b/ansible/roles/solc/tasks/main.yml @@ -0,0 +1,7 @@ +- name: Install solc-js + community.general.npm: + name: solc + version: '0.8.14-fixed' + path: /usr/local/solc + global: true + state: present From aae335cab22f9b376ac8d98049c3636df5c212aa Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Fri, 28 Oct 2022 04:03:50 -0700 Subject: [PATCH 13/14] fixes --- ansible/plays/evm-tools.yml | 2 ++ ansible/roles/brownie/tasks/install-python3venv.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/plays/evm-tools.yml b/ansible/plays/evm-tools.yml index 5fb6272..9989d0a 100644 --- a/ansible/plays/evm-tools.yml +++ b/ansible/plays/evm-tools.yml @@ -14,5 +14,7 @@ - solc - solc-select - brownie + - manticore + - mythril - ganache - remix diff --git a/ansible/roles/brownie/tasks/install-python3venv.yml b/ansible/roles/brownie/tasks/install-python3venv.yml index c1626b6..a700db1 100644 --- a/ansible/roles/brownie/tasks/install-python3venv.yml +++ b/ansible/roles/brownie/tasks/install-python3venv.yml @@ -1,4 +1,4 @@ -- name: Install python3.10-venv +- name: Install python3-venv become_user: root become: true apt: @@ -6,4 +6,4 @@ update_cache: yes cache_valid_time: 604800 pkg: - - python3.10-venv + - python3-venv From 520fb18981c41cdd7a5342cf4f0233a2e93a2c61 Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Fri, 28 Oct 2022 04:04:29 -0700 Subject: [PATCH 14/14] problematic pip installs, chose docker. added manticore and mythril --- ansible/roles/manticore/tasks/install-via-docker.yml | 6 ++++++ ansible/roles/manticore/tasks/install-via-pip.yml | 4 ++++ ansible/roles/manticore/tasks/main.yml | 6 ++++++ ansible/roles/mythril/tasks/install-via-docker.yml | 6 ++++++ ansible/roles/mythril/tasks/install-via-pip.yml | 4 ++++ ansible/roles/mythril/tasks/main.yml | 9 +++++++++ 6 files changed, 35 insertions(+) create mode 100644 ansible/roles/manticore/tasks/install-via-docker.yml create mode 100644 ansible/roles/manticore/tasks/install-via-pip.yml create mode 100644 ansible/roles/manticore/tasks/main.yml create mode 100644 ansible/roles/mythril/tasks/install-via-docker.yml create mode 100644 ansible/roles/mythril/tasks/install-via-pip.yml create mode 100644 ansible/roles/mythril/tasks/main.yml diff --git a/ansible/roles/manticore/tasks/install-via-docker.yml b/ansible/roles/manticore/tasks/install-via-docker.yml new file mode 100644 index 0000000..d6dac40 --- /dev/null +++ b/ansible/roles/manticore/tasks/install-via-docker.yml @@ -0,0 +1,6 @@ +- name: Create manticore + community.docker.docker_container: + name: manticore + image: trailofbits/manticore:0.3.7 + state: started + restart: true diff --git a/ansible/roles/manticore/tasks/install-via-pip.yml b/ansible/roles/manticore/tasks/install-via-pip.yml new file mode 100644 index 0000000..1769ca1 --- /dev/null +++ b/ansible/roles/manticore/tasks/install-via-pip.yml @@ -0,0 +1,4 @@ +- name: Install manticore python package + ansible.builtin.pip: + name: manticore==0.3.7 + state: present diff --git a/ansible/roles/manticore/tasks/main.yml b/ansible/roles/manticore/tasks/main.yml new file mode 100644 index 0000000..39e31f0 --- /dev/null +++ b/ansible/roles/manticore/tasks/main.yml @@ -0,0 +1,6 @@ +--- +#- import_tasks: install-via-pip.yml +# tags: install-via-pip + +- import_tasks: install-via-docker.yml + tags: install-via-docker diff --git a/ansible/roles/mythril/tasks/install-via-docker.yml b/ansible/roles/mythril/tasks/install-via-docker.yml new file mode 100644 index 0000000..07b3bd9 --- /dev/null +++ b/ansible/roles/mythril/tasks/install-via-docker.yml @@ -0,0 +1,6 @@ +- name: Create mythril + community.docker.docker_container: + name: manticore + image: mythril/myth:0.23.1 + state: started + restart: true diff --git a/ansible/roles/mythril/tasks/install-via-pip.yml b/ansible/roles/mythril/tasks/install-via-pip.yml new file mode 100644 index 0000000..e7acdba --- /dev/null +++ b/ansible/roles/mythril/tasks/install-via-pip.yml @@ -0,0 +1,4 @@ +- name: Install mythril python package + ansible.builtin.pip: + name: mythril==0.23.1 + state: present diff --git a/ansible/roles/mythril/tasks/main.yml b/ansible/roles/mythril/tasks/main.yml new file mode 100644 index 0000000..9bb5a57 --- /dev/null +++ b/ansible/roles/mythril/tasks/main.yml @@ -0,0 +1,9 @@ +--- +#- import_tasks: install-via-pip.yml +# tags: install-via-pip +# UNTESTED + + +- import_tasks: install-via-docker.yml + tags: install-via-docker +