mirror of
https://github.com/Crocmagnon/ansible.git
synced 2025-03-14 21:44:03 +01:00
extract bat setup
This commit is contained in:
parent
e599994186
commit
44f4fd1c4c
3 changed files with 16 additions and 8 deletions
|
@ -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: |
|
||||
|
|
|
@ -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]
|
||||
|
|
15
playbooks/dependencies/bat.yaml
Normal file
15
playbooks/dependencies/bat.yaml
Normal 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
|
Loading…
Add table
Reference in a new issue