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

AnsibleUndefinedVariable: 'unicode object' has no attribute 'options' #10

Open
kenytux opened this issue Jan 18, 2020 · 0 comments
Open

Comments

@kenytux
Copy link

kenytux commented Jan 18, 2020

I've got this error and I can't solve it!

TASK [ansible-autofs : Create map-files] ******************************************************************************************************************
failed: [m2m_appli_1] (item={'value': {u'path': u'/nfs', u'options': [u'ghost', u'timeout=30']}, 'key': u'nfs'}) => {"ansible_loop_var": "item", "changed": false, "item": {"key": "nfs", "value": {"options": ["ghost", "timeout=30"], "path": "/nfs"}}, "msg": "AnsibleUndefinedVariable: 'unicode object' has no attribute 'options'"}

Here my variables

use_autofs_mounts: true
nfs_source: 32-hes1pdata01
autofs_mounts:
  Mount1:
    mount: "/var/sharedFolder/scape/taskResults"
    share: "{{ nfs_source }}:/var/sharedServer/scape/Aggregated"
    type: nfs
    options:
      - uid=2004
      - gid=3001
autofs_mounts_enabled:
  - Mount1

autofs_maps:
  nfs: 
    path: /nfs
    options: 
      - ghost
      - timeout=30
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

1 participant