From e9202e0bb7a31b2afea6c09379647e1b76c1bbc1 Mon Sep 17 00:00:00 2001 From: dbrw Date: Sat, 13 Aug 2022 23:48:02 +0700 Subject: [PATCH] update config --- python_dev.yml | 9 +++++++++ roles/common/tasks/aur.yml | 1 + roles/common/tasks/core-apps.yml | 1 + roles/common/tasks/main.yml | 3 +++ roles/common/tasks/virtualization.yml | 1 + roles/common/vars/main.yml | 5 ++++- 6 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 python_dev.yml diff --git a/python_dev.yml b/python_dev.yml new file mode 100644 index 0000000..78632b3 --- /dev/null +++ b/python_dev.yml @@ -0,0 +1,9 @@ +- name: Install python tooling + pacman: + name: + - puthon + - python-pip + - mariadb-clients + +- name: Install pipenv in user mode + command: pip install --user pipenv diff --git a/roles/common/tasks/aur.yml b/roles/common/tasks/aur.yml index bf83a70..0f7e42d 100644 --- a/roles/common/tasks/aur.yml +++ b/roles/common/tasks/aur.yml @@ -1,4 +1,5 @@ - name: Create AUR directory + become: true file: path="{{ aur.dir }}" state=directory owner={{ username }} diff --git a/roles/common/tasks/core-apps.yml b/roles/common/tasks/core-apps.yml index e909dc3..779eaed 100644 --- a/roles/common/tasks/core-apps.yml +++ b/roles/common/tasks/core-apps.yml @@ -24,6 +24,7 @@ - zathura-pdf-mupdf - pdftk - ntfs-3g + - systemd-resolvconf state: present - name: Install archival utils diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 91411a5..5afb2bb 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -64,6 +64,9 @@ - include_tasks: docker.yml when: install_docker == True +- include_tasks: python_dev.yml + when: install_python_dev == True + # Dotfiles - include_tasks: dotfiles.yml when: pull_dotfiles == True diff --git a/roles/common/tasks/virtualization.yml b/roles/common/tasks/virtualization.yml index 1ecdfff..2cea893 100644 --- a/roles/common/tasks/virtualization.yml +++ b/roles/common/tasks/virtualization.yml @@ -9,6 +9,7 @@ - dnsmasq - samba - iptables-nft + - mkcert - name: update qemu.conf lineinfile: diff --git a/roles/common/vars/main.yml b/roles/common/vars/main.yml index fb22bc4..65f7477 100644 --- a/roles/common/vars/main.yml +++ b/roles/common/vars/main.yml @@ -61,12 +61,15 @@ install_virtualization: True ## Do we want to install docker? install_docker: True +## Do we want to install python development tools? +install_python_dev: True + ## AUR vars ## =========================== use_aur: True aur: - dir: /home/{{ username }}/.cache/aur + dir: "/home/{{ username }}/.cache/aur" packages: - yay - downgrade