Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ---
  2. - name: create database
  3. mysql_db: name={{ mysql_user }} login_password={{ mysql_root_pwd }} state=present
  4.  
  5. - hosts: somehost
  6.  
  7. tasks:
  8. - include: roles/rootserver/tasks/mysqluser.yml
  9. vars:
  10. mysql_user: "{{ item.name }}"
  11. with items: "{{ typo3 }}"
  12.  
  13. mysql_root_pwd: sdhjouidhjuihe3
  14. typo3:
  15. - name: foo
  16.  
  17. The offending line appears to be:
  18.  
  19. vars:
  20. mysql_user: "{{ item.name }}"
  21. ^ here
  22. We could be wrong, but this one looks like it might be an issue with
  23. missing quotes. Always quote template expression brackets when they
  24. start a value.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement