extract bat setup

This commit is contained in:
Gabriel Augendre 2025-03-12 23:33:31 +01:00
parent e599994186
commit 44f4fd1c4c
3 changed files with 16 additions and 8 deletions

View file

@ -8,14 +8,6 @@
ansible.builtin.apt:
pkg:
- python3-venv
- bat
- name: Link batcat to bat
ansible.builtin.file:
src: /usr/bin/batcat
dest: /home/gaugendre/.local/bin/bat
owner: gaugendre
group: gaugendre
state: link
- name: Setup venv
# github3.py required by the goatcounter playbook
ansible.builtin.shell: |

View file

@ -1,4 +1,5 @@
---
# intentionally leaving 00-clean-deps to prevent re-creating the venv every time
- import_playbook: 01-setup-deps.yaml # noqa: name[play]
- import_playbook: bat.yaml # noqa: name[play]
- import_playbook: caddy.yaml # noqa: name[play]

View file

@ -0,0 +1,15 @@
---
- name: Setup ansible python dependencies
hosts: servers
gather_facts: false
tasks:
- name: Install system deps
become: true
ansible.builtin.apt:
pkg:
- bat
- name: Link batcat to bat
ansible.builtin.file:
src: /usr/bin/batcat
dest: /home/gaugendre/.local/bin/bat
state: link