#!/usr/bin/env ansible-playbook # vim:ft=ansible: --- # Home media storage Pi - hosts: vm-fs-1.home.mgmt.desu.ltd tasks: - name: assure nfs directory file: path=/nfs state=directory mode=0755 roles: - role: backup vars: backup_s3backup_list_extra: - /data backup_time: "Mon *-*-* 02:00:00" tags: [ backup ] - role: geerlingguy.nfs vars: nfs_exports: - "/nfs 192.168.0.0/16(rw,no_root_squash,sync) 172.24.0.0/16(rw,no_root_squash,sync)" tags: [ storage, nfs ] - role: bertvv.samba vars: samba_users: - name: salt password: "{{ samba_user_salt_password }}" samba_shares: - name: media browseable: yes comment: 'Mass storage for all the things' group: salt guest_ok: yes owner: 911 public: yes path: /nfs tags: [ storage, samba, smb ]