Guest User

Untitled

a guest
Dec 1st, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # - name: add 'mysql' to path
  2. # lineinfile:
  3. # dest: /etc/paths
  4. # state: present
  5. # backrefs: yes
  6. # regexp: 'PATH=(["]*)((?!.*?/usr/local/mysql/bin/).*?)(["]*)$'
  7. # line: 'PATH=12:/usr/local/mysql/bin3'
  8.  
  9. # - name: add 'mysql' to path
  10. # shell: export PATH=$PATH:/usr/local/mysql/bin && echo $PATH
  11.  
  12. - name: Copy database dump file to host
  13. copy:
  14. src: bd_demo_dump.sql
  15. dest: /tmp
  16.  
  17. - name: Restore database
  18. mysql_db:
  19. login_user: root
  20. login_password: password
  21. state: import
  22. name: all
  23. target: /tmp/bd_demo_dump.sql
Add Comment
Please, Sign In to add comment