Layout refactor
Also included provisioning for htpc host
This commit is contained in:
parent
f90702c7b8
commit
970f7489fb
103 changed files with 782 additions and 893 deletions
46
tasks/xps.yml
Normal file
46
tasks/xps.yml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
- name: Provision powertop systemd service
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/systemd/system/powertop.service
|
||||
state: absent
|
||||
|
||||
- name: Provision python pa-dlna
|
||||
block:
|
||||
- name: Create configuration directory
|
||||
ansible.builtin.file:
|
||||
path: '{{ xdg_config_dir }}/pa-dlna'
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy configuration file
|
||||
ansible.builtin.template:
|
||||
src: templates/xps/pa-dlna/config.j2
|
||||
dest: '{{ xdg_config_dir }}/pa-dlna/pa-dlna.conf'
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy systemd service
|
||||
ansible.builtin.template:
|
||||
src: templates/xps/pa-dlna/service.j2
|
||||
dest: '{{ xdg_config_dir }}/systemd/user/pa-dlna.service'
|
||||
mode: '0755'
|
||||
|
||||
- name: Create virtualenv directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /opt/virtualenv/pa-dlna
|
||||
state: directory
|
||||
owner: sonny
|
||||
group: sonny
|
||||
mode: '0755'
|
||||
|
||||
- name: Install pa-dlna
|
||||
ansible.builtin.pip:
|
||||
name: 'pa-dlna=={{ pa_dlna_version }}'
|
||||
virtualenv: /opt/virtualenv/pa-dlna
|
||||
virtualenv_command: python3.13 -m venv
|
||||
|
||||
- name: Install python-systemd
|
||||
ansible.builtin.pip:
|
||||
name: 'python-systemd=={{ pa_dlna_systemd_version }}'
|
||||
virtualenv: /opt/virtualenv/pa-dlna
|
||||
virtualenv_command: python3.13 -m venv
|
||||
Loading…
Add table
Add a link
Reference in a new issue