79 lines
1.6 KiB
YAML
79 lines
1.6 KiB
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
|
|
|
|
- name: Install login.conf
|
|
copy:
|
|
src: login.conf
|
|
dest: /etc/login.conf
|
|
owner: root
|
|
group: wheel
|
|
mode: 0644
|
|
register: login_config
|
|
|
|
- name: Update cap_mkdb
|
|
command: cap_mkdb /etc/login.conf
|
|
when: login_config.changed
|
|
|
|
- name: Enable periodic scrub
|
|
community.general.sysrc:
|
|
name: daily_scrub_zfs_enable
|
|
value: "YES"
|
|
path: /etc/periodic.conf.local
|
|
|
|
- name: Set scrub interval
|
|
community.general.sysrc:
|
|
name: daily_scrub_zfs_default_threshold
|
|
value: "7"
|
|
path: /etc/periodic.conf.local
|
|
# - name: Install loader.conf
|
|
# copy:
|
|
# src: "{{loader_conf}}"
|
|
# dest: /boot/loader.conf
|
|
# owner: root
|
|
# group: wheel
|
|
# mode: 0644
|
|
# when: loader_conf is defined
|
|
|
|
# - name: Install rc.conf
|
|
# copy:
|
|
# src: "{{rc_conf}}"
|
|
# dest: /etc/rc.conf
|
|
# mode: 0644
|
|
# owner: root
|
|
# group: wheel
|
|
# when: rc_conf is defined
|