10ha.yml 336 B

1234567891011121314
  1. #db1
  2. - name: Dump all databases
  3. mysql_db:
  4. state: dump
  5. name: all
  6. target: "{{ file_path_cached }}"
  7. login_user: "{{ db_user }}"
  8. login_password: "{{ db_password }}"
  9. - name: Copy db_file back to ansible host file cache
  10. synchronize:
  11. src: "{{ file_path_cached }}"
  12. dest: "{{ file_path_cached }}"
  13. mode: pull