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