🔧 update coreelec playbook

This commit is contained in:
auricom
2024-01-05 18:05:38 +01:00
parent badda50af3
commit d26743d5d9
4 changed files with 12 additions and 6 deletions

View File

@@ -1,2 +1 @@
#shellcheck disable=SC2148,SC2155
export ANSIBLE_CONFIG=$(expand_path ./ansible.cfg)
use nix

View File

@@ -4,3 +4,4 @@ nfs_shares:
- music
- photo
- video
- home/helene

View File

@@ -9,16 +9,15 @@
- name: nfs | create system.d services
ansible.builtin.template:
src: "storage-nfs.mount"
dest: "/storage/.config/system.d/storage-mnt-{{ item }}.mount"
dest: "/storage/.config/system.d/storage-mnt-{{ item | replace('/','-') }}.mount"
mode: 0775
loop: "{{ nfs_shares }}"
register: services
- name: nfs | activate system.d services
ansible.builtin.systemd:
name: storage-mnt-{{ item }}.mount
state: restarted
name: storage-mnt-{{ item | replace('/','-') }}.mount
state: started
enabled: true
daemon_reload: true
loop: "{{ nfs_shares }}"
when: services.changed

7
ansible/shell.nix Normal file
View File

@@ -0,0 +1,7 @@
{pkgs ? import <nixpkgs> {}}:
with pkgs;
mkShell {
buildInputs = [
ansible
];
}