From fe4ed832fa4257a815b40c33c02887cbd351eec6 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Tue, 11 Apr 2023 23:13:11 -0700 Subject: [PATCH] more stuff to install --- Makefile | 14 ++++++++++++-- roles/development/tasks/main.yml | 19 +++++++++++++++++++ roles/heavy/tasks/main.yml | 1 + 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7cf1134..6f89426 100644 --- a/Makefile +++ b/Makefile @@ -4,14 +4,24 @@ C := -c local # connection K := -K # prompt for sudo password O := # additional options P := site.yml # playbook +T := # if y, time the process V := -vvv # verbosity + +ifeq ($T,y) + TIME = /usr/bin/time -v +else + TIME = +endif + all: deploy +print-%: ; @echo '$(subst ','\'',$*=$($*))' + check: - ansible-playbook -i $I -l $L $C $K --syntax-check $V $O $P + $(TIME) ansible-playbook -i $I -l $L $C $K --syntax-check $V $O $P deploy: - ansible-playbook -i $I -l $L $C $K $V $O $P + $(TIME) ansible-playbook -i $I -l $L $C $K $V $O $P .PHONY: all check deploy diff --git a/roles/development/tasks/main.yml b/roles/development/tasks/main.yml index c46c775..518ea2e 100644 --- a/roles/development/tasks/main.yml +++ b/roles/development/tasks/main.yml @@ -15,18 +15,30 @@ - golang-protobuf-extensions-dev - git - ipython3 + - jq - libprotobuf-dev - lua5.3 - luarocks - make - protobuf-compiler - python3-pip + - python3-progressbar + - python3-pycryptodome - sbcl - texinfo - tig - zlib1g - zlib1g-dev +# prefer python3-$package instead of using pip. +- name: install various python utils + ansible.builtin.pip: + executable: pip3 + name: "{{item}}" + extra_args: --user + with_items: + - yq + - name: install dev tools with guis when: not headless become: true @@ -173,12 +185,19 @@ - binutils-arm-linux-gnueabi - binutils-arm-linux-gnueabihf - binutils-avr + - dfu-util - gcc-arm-none-eabi - gcc-arm-linux-gnueabi - gcc-arm-linux-gnueabihf - gcc-avr - libstdc++-arm-none-eabi-newlib + - libusb-0.1-4 + - libusb-1.0-0 + - libusb-1.0-0-dev + - libusb-1.0-doc + - libusb-dev - picocom + - python3-usb - name: install embedded dev guis when: (dev_virt or dev_full) and not headless diff --git a/roles/heavy/tasks/main.yml b/roles/heavy/tasks/main.yml index d3a6c26..16f1257 100644 --- a/roles/heavy/tasks/main.yml +++ b/roles/heavy/tasks/main.yml @@ -3,6 +3,7 @@ checksum: sha256:f215c1d30545ee9a9803a170df920bf8fa2d5e0a8fa87a21620bca11ae20b9dc url: https://github.com/obsidianmd/obsidian-releases/releases/download/v1.1.16/Obsidian-1.1.16.AppImage dest: "/home/{{ laptop_user }}/.local/bin/obsidian" + mode: 0755 - name: add signal repo key become: true