Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. cat roles/common/tasks/users.yml
  2. #Add the jerome user
  3. - user: name=jerome password: {{ ssh_password }}
  4.  
  5. cat roles/common/vars/main.yml
  6. ssh_password: "$6$rounds=656000$Dx64/ciLGpPPWMAz$M72l5.RN1ST.73ghhi3Sr2/LucPLn34DuDaMn2NWBVEvgN.ed.QVUcxvaqtlju1hHaMhZlVGUYsIl6Tkwg/SA0"
  7.  
  8. TASK [common : include] ********************************************************
  9. task path: /Users/jerome/Ansible/jerome/roles/common/tasks/main.yml:4
  10. fatal: [myip]: FAILED! => {"failed": true, "reason": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in '/Users/jerome/Ansible/jerome/roles/common/tasks/users.yml': line 2, column 29, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n#Add the jerome user\n- user: name=jerome password: {{ ssh_password }}\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement