-
-
Notifications
You must be signed in to change notification settings - Fork 521
Description
I'm just following the instructions step-by-step found here:
https://ansible-nas.io/docs/getting-started/installation/
I used Ubuntu Server named ubuntu-22.04.5-live-server-amd64.iso to create a VMWare system on Windows 11. I'm using the latest VMWare workstation and Win 11. I installed build-essential and ansible packages supplied with the release.
I cloned the latest (12/14/2024) ansible-nas repo from GitHub (Commit 1aec019.) for step 1.
Did step 2 verbatim.
For step 3 I changed nas.yml to the following:
---
## ._____. .__
## _____ ____ _____|__\_ |__ | | ____ ____ _____ ______
## \__ \ / \ / ___/ || __ \| | _/ __ \ ______ / \\__ \ / ___/
## / __ \| | \\___ \| || \_\ \ |_\ ___/ /_____/ | | \/ __ \_\___ \
## (____ /___| /____ >__||___ /____/\___ > |___| (____ /____ >
## \/ \/ \/ \/ \/ \/ \/ \/
## a n s i b l e - n a s https://github.com/davestephens/ansible-nas
# Add your all.yml config overrides to this file. See group_vars/all.yml for all possible settings.
# Example options
ansible_nas_hostname: testnas2
ansible_nas_timezone: Etc/UTC
## Enable some applications
homepage_enabled: true
For step 4 I changed the inventory file to this:
## ._____. .__
## _____ ____ _____|__\_ |__ | | ____ ____ _____ ______
## \__ \ / \ / ___/ || __ \| | _/ __ \ ______ / \\__ \ / ___/
## / __ \| | \\___ \| || \_\ \ |_\ ___/ /_____/ | | \/ __ \_\___ \
## (____ /___| /____ >__||___ /____/\___ > |___| (____ /____ >
## \/ \/ \/ \/ \/ \/ \/ \/
## a n s i b l e - n a s https://github.com/davestephens/ansible-nas
[all]
## Example when running from a remote workstation
# ansible-nas ansible_host=192.168.1.30
## Example when running directly on your Ansible-NAS server
ansible-nas ansible_connection=local ansible_host=localhost
[nas]
ansible-nas
For step 5 I ran the requirements.yml install file verbatim. It had no errors.
Finally I ran the playbook running the exact command as supplied. I provided my sudo password to the process. This is what resulted:
skb@testnas2:~/ansible-nas$ ansible-playbook -i inventories/my-ansible-nas/inventory nas.yml -b -K
BECOME password:
[WARNING]: Collection vladgh.samba does not support Ansible version 2.10.8
[WARNING]: Collection community.general does not support Ansible version 2.10.8
[WARNING]: Collection community.docker does not support Ansible version 2.10.8
PLAY [Ansible-NAS] *****************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************
ok: [ansible-nas]
TASK [ansible-nas-users : Create ansible-nas group] ********************************************************************************************************************************
changed: [ansible-nas]
TASK [ansible-nas-users : Create ansible-nas user] *********************************************************************************************************************************
changed: [ansible-nas]
TASK [vladgh.samba.server : Include OS specific variables] *************************************************************************************************************************
ok: [ansible-nas]
TASK [vladgh.samba.server : Install Samba packages] ********************************************************************************************************************************
changed: [ansible-nas]
TASK [vladgh.samba.server : Install Samba VFS extensions packages] *****************************************************************************************************************
ok: [ansible-nas]
TASK [vladgh.samba.server : Register Samba version] ********************************************************************************************************************************
ok: [ansible-nas]
TASK [vladgh.samba.server : Create Samba shares root directory] ********************************************************************************************************************
fatal: [ansible-nas]: FAILED! => {"msg": "The conditional check '(samba_shares is defined and samba_shares | length > 0) and ( samba_manage_directories is defined and samba_manage_directories )' failed. The error was: error while evaluating conditional ((samba_shares is defined and samba_shares | length > 0) and ( samba_manage_directories is defined and samba_manage_directories )): [{'name': 'downloads', 'comment': 'Stuff downloaded', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ downloads_root }}'}, {'name': 'movies', 'comment': 'Movies', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ movies_root }}'}, {'name': 'tv', 'comment': 'TV Episodes', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ tv_root }}'}, {'name': 'music', 'comment': 'Music', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ music_root }}'}, {'name': 'podcasts', 'comment': 'Podcasts', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ podcasts_root }}'}, {'name': 'dump', 'comment': 'File dump', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ samba_shares_root }}/dump'}, {'name': 'games', 'comment': 'Games', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ samba_shares_root }}/games'}, {'name': 'photos', 'comment': 'Pictures', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ photos_root }}'}, {'name': 'books', 'comment': 'Books', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ books_root }}'}, {'name': 'audiobooks', 'comment': 'Audiobooks', 'guest_ok': True, 'public': True, 'writable': True, 'browsable': True, 'path': '{{ audiobooks_root }}'}, {'name': 'comics', 'comment': 'Comics', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ comics_root }}'}, {'name': 'documents', 'comment': 'Documents', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ documents_root }}'}, {'name': 'code', 'comment': 'Code', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ code_root }}'}, {'name': 'recordings', 'comment': 'Recordings', 'guest_ok': True, 'public': True, 'writable': True, 'browseable': True, 'path': '{{ recordings_root }}'}]: 'recordings_root' is undefined\n\nThe error appears to be in '/home/skb/.ansible/collections/ansible_collections/vladgh/samba/roles/server/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create Samba shares root directory\n ^ here\n"}
PLAY RECAP *************************************************************************************************************************************************************************
ansible-nas : ok=7 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
-Dale