Awesome that worked, thanks for the help. Steven
On Thursday, November 19, 2015 at 6:00:05 AM UTC-8, Dick Davies wrote: > > split 'Copy MySQL Database' into two separate tasks, with one action each. > > On 18 November 2015 at 22:01, Steven Parsons <[email protected] > <javascript:>> wrote: > >> I am wondering if anyone has copied a MySQL database from a location and >> then restored it locally using Ansible? I thought I had it figured out with >> the following syntax, but for some reason its failing. >> >> - name: Install python-mysqldb >> apt: name=python-mysqldb state=latest >> >> - name: Copy MySQL Database >> mysql_db: login_host=onthe.web.net login_user=someone >> login_password=cheese >> state=dump name=cheese target=/tmp/cheese.sql >> mysql_db: state=import name=cheese target=/tmp/cheese.sql >> >> Any help would be appreciated. >> >> Steven >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/9cf850d5-d844-49da-9e2a-672f14483513%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/9cf850d5-d844-49da-9e2a-672f14483513%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2a544424-c3ac-4d01-9fe8-d488a522f8db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
