machine_setup/ansible/roles/base/tasks/freebsd.yaml
2022-10-12 20:30:11 -04:00

37 lines
782 B
YAML

- name: Install packages
package:
name:
- rsync
- bash
- tmux
- lsof
- mg
- htop
- tree
- curl
- pstree
- ncdu
state: present
- name: See if the alacritty termcap has been added
lineinfile:
name: /usr/share/misc/termcap
regexp: |-
^alacritty\|
state: absent
check_mode: yes
changed_when: false
register: alacritty_cap
- name: Append alacritty termcap info
blockinfile:
path: /usr/share/misc/termcap
block: "{{ lookup('file', 'alacritty.termcap') }}"
marker: "# {mark} ANSIBLE MANAGED BLOCK alacritty"
when: not alacritty_cap.found
register: wrote_alacritty_cap
- name: Update cap_mkdb
command: cap_mkdb /usr/share/misc/termcap
when: wrote_alacritty_cap.changed