ref(playbook): Move all plays into separate directory
This commit is contained in:
parent
996560410e
commit
8e79c5f804
7 changed files with 6 additions and 6 deletions
47
books/void_packages.yaml
Normal file
47
books/void_packages.yaml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
- name: Install basic custom void packages
|
||||
hosts: interface
|
||||
become: true
|
||||
tags: interface
|
||||
tasks:
|
||||
- name: Set up keyd for custom key events
|
||||
community.general.xbps:
|
||||
name:
|
||||
- keyd
|
||||
state: "{{ desired_package_state }}"
|
||||
notify: installed-keyd
|
||||
|
||||
- name: Install many fonts
|
||||
community.general.xbps:
|
||||
name: "{{ packages_fonts }}"
|
||||
state: "{{ desired_package_state }}"
|
||||
notify: installed-fonts
|
||||
when: packages_fonts
|
||||
|
||||
handlers:
|
||||
- name: Activate keyd service
|
||||
ansible.builtin.file:
|
||||
force: "yes"
|
||||
src: "/etc/sv/{{ item }}"
|
||||
dest: "/etc/runit/runsvdir/default/{{ item }}"
|
||||
state: link
|
||||
with_items: [keyd]
|
||||
listen: installed-keyd
|
||||
|
||||
- name: Regenerate fontconfig
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- xbps-reconfigure
|
||||
- --force
|
||||
- fontconfig
|
||||
listen: installed-fonts
|
||||
|
||||
- name: Install basic custom void packages
|
||||
hosts: target_system
|
||||
become: true
|
||||
tags:
|
||||
- packages
|
||||
tasks:
|
||||
- name: Install a bunch of base custom stuff
|
||||
community.general.xbps:
|
||||
name: "{{ lookup('community.general.merge_variables', '^packages_.*') }}"
|
||||
state: "{{ desired_package_state }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue