add brownie, solcjs, solc-select, bashrc vars, pip3, py3-venv, operating system user var
This commit is contained in:
parent
d48335860d
commit
27743c7276
|
@ -13,4 +13,4 @@ crowdfunding page:
|
||||||
***
|
***
|
||||||
|
|
||||||
## 1st Round: Primary Sponsors (400,000 SATS or more):
|
## 1st Round: Primary Sponsors (400,000 SATS or more):
|
||||||
Bryan Black (Website: https://bringyourwallet.com)
|
Bryan Black (Website: https://example.com)
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
- hosts: vagrant
|
- hosts: vagrant
|
||||||
vars:
|
vars:
|
||||||
|
ziionos_user: ziion
|
||||||
|
bash_line: "export PATH=$PATH:$HOME/.local/bin" # pipx support for user install
|
||||||
|
bash_line_state: present
|
||||||
docker_users:
|
docker_users:
|
||||||
- ziion
|
- ziion
|
||||||
become: true
|
become: true
|
||||||
|
@ -8,5 +11,8 @@
|
||||||
- common
|
- common
|
||||||
- geerlingguy.docker
|
- geerlingguy.docker
|
||||||
- truffle
|
- truffle
|
||||||
|
- solc
|
||||||
|
- solc-select
|
||||||
|
- brownie
|
||||||
- ganache
|
- ganache
|
||||||
- remix
|
- remix
|
||||||
|
|
9
ansible/roles/brownie/tasks/install-python3venv.yml
Normal file
9
ansible/roles/brownie/tasks/install-python3venv.yml
Normal file
|
@ -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
|
16
ansible/roles/brownie/tasks/main.yml
Normal file
16
ansible/roles/brownie/tasks/main.yml
Normal file
|
@ -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
|
6
ansible/roles/common/tasks/install-bashrc.yml
Normal file
6
ansible/roles/common/tasks/install-bashrc.yml
Normal file
|
@ -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
|
9
ansible/roles/common/tasks/install-pip.yml
Normal file
9
ansible/roles/common/tasks/install-pip.yml
Normal file
|
@ -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
|
|
@ -1,3 +1,12 @@
|
||||||
|
---
|
||||||
- import_tasks: install-node.yml
|
- import_tasks: install-node.yml
|
||||||
tags:
|
tags:
|
||||||
- install-node
|
- install-node
|
||||||
|
|
||||||
|
- import_tasks: install-pip.yml
|
||||||
|
tags:
|
||||||
|
- install-pip
|
||||||
|
|
||||||
|
- import_tasks: install-bashrc.yml
|
||||||
|
tags:
|
||||||
|
- install-bashrc
|
||||||
|
|
4
ansible/roles/solc-select/tasks/main.yml
Normal file
4
ansible/roles/solc-select/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Install solc-select python package
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name: solc-select
|
||||||
|
# name: solc-select==1.0.1
|
7
ansible/roles/solc/tasks/main.yml
Normal file
7
ansible/roles/solc/tasks/main.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue