add brownie, solcjs, solc-select, bashrc vars, pip3, py3-venv, operating system user var

This commit is contained in:
Bryan Black 2022-10-28 01:24:14 -07:00
parent d48335860d
commit 27743c7276
9 changed files with 67 additions and 1 deletions

View 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

View 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

View 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

View 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

View file

@ -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

View file

@ -0,0 +1,4 @@
- name: Install solc-select python package
ansible.builtin.pip:
name: solc-select
# name: solc-select==1.0.1

View 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