Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. root@ansible:~/roles/vm/install_percona# tail -n 25 main.yml
  2. ignore_errors: yes
  3.  
  4. - name: Update MySQL root password
  5. mysql_user: name=root host={{ hostvars[item]['ansible_eth1']['ipv4']['address'] }} password={{ root_password.stdout }} login_user=root login_password={{ root_password.stdout }} check_implicit_admin=yes
  6. with_items: "{{ appservers }}"
  7. ignore_errors: yes
  8.  
  9. when: mycnf.stat.islnk is not defined
  10.  
  11. - name: "Mysql tune"
  12. synchronize:
  13. src: synchronize/
  14. dest: /
  15. notify: restart percona
  16.  
  17. handlers:
  18. - name: "restart percona"
  19. service:
  20. name: mysqld
  21. state: restarted
  22.  
  23.  
  24. - hosts: vm
  25. - include: ../zabbix/main.yml
  26. - include: ../monogo_scripts/main.yml
  27. root@ansible:~/roles/vm/install_percona# cat /etc/ansible/host_vars/blueshadow-db
  28. appservers:
  29. - blueshadow-app
  30. root@ansible:~/roles/vm/install_percona# ansible-playbook -l blueshadow-db main.yml -vv
  31. Using /etc/ansible/ansible.cfg as config file
  32. ERROR! Syntax Error while loading YAML.
  33.  
  34.  
  35. The error appears to have been in '/root/roles/vm/install_percona/main.yml': line 125, column 3, but may
  36. be elsewhere in the file depending on the exact syntax problem.
  37.  
  38. The offending line appears to be:
  39.  
  40.  
  41. - name: "Mysql tune"
  42. ^ here
  43.  
  44. root@ansible:~/roles/vm/install_percona#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement