Compare commits

..

No commits in common. "7d3c9dcad46dbb91beb95e5190832bee18504206" and "fef296cbbddb93e62f2aa7452e307542b3a4fd28" have entirely different histories.

3 changed files with 1 additions and 44 deletions

View file

@ -11,8 +11,7 @@
- name: Setup venv
# github3.py required by the goatcounter playbook
ansible.builtin.shell: |
if [ -x /tmp/ansible/bin/python ] && [ -x /tmp/ansible/bin/pip ] ; then exit 123; fi
rm -rf /tmp/ansible
if [ -x /tmp/ansible/bin/python ]; then exit 123; fi
/usr/bin/python3 -m venv /tmp/ansible
/tmp/ansible/bin/pip install --upgrade 'github3.py >= 1.0.0a3'
args:

View file

@ -1,5 +1,4 @@
---
# 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

@ -1,41 +0,0 @@
---
- 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
- name: Get bat config dir
ansible.builtin.command: /usr/bin/batcat --config-dir
register: confdir
changed_when: false
check_mode: false
- name: Create bat themes dir
ansible.builtin.file:
path: "{{ confdir.stdout }}/themes"
state: directory
mode: "0775"
- name: Download Catppuccin themes
ansible.builtin.get_url:
url: https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20{{ item }}.tmTheme
dest: "{{ confdir.stdout }}/themes/Catppuccin {{ item }}.tmTheme"
mode: "0664"
notify:
- Rebuild bat theme cache
loop:
- Latte
- Mocha
- Macchiato
- Frappe
handlers:
- name: Rebuild bat theme cache
ansible.builtin.command: /usr/bin/batcat cache --build
changed_when: true