Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't have the same NFS mount point with different permissions #16

Open
steven-ellis opened this issue Mar 11, 2024 · 1 comment
Open

Comments

@steven-ellis
Copy link
Contributor

Example would be to export my MP3 directory ro to media players but rw to my desktop

- name: RO export for media players
  arensb.truenas.sharing_nfs:
    - name: MP3 ro export
      path: /mnt/pool0/MP3
      readonly: false
      hosts:
            - 192.168.1.8
            - 192.168.1.9

- name: RW Export for my desktop
  arensb.truenas.sharing_nfs:
    - name: MP3 rw export
      readonly: true
      path: /mnt/pool0/MP3
      hosts:
            - 192.168.1.2

Only the second share will be created when you check the GUI on TrueNAS Scale.

Look like you're using "path" as the unique identified when it is possible to have mutiple exports with the same path.

@arensb
Copy link
Owner

arensb commented May 17, 2024

I haven't been able to reproduce this bug. I notice that you have an extra dash after .sharing_nfs:\n. But even correcting for that, I was able to create a volume with separate read-only and read-write exports to different sets of hosts.

Could you please run ansible-playbook -C -vvv myplaybook.yml, and if that succeeds, ansible-playbook -vvv myplaybook.yml, where myplaybook.yml has your play, above? I'd like to see exactly what it's trying to do and where it's failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants