Few questions: Help please

Hello Guys,

I have been working on an automation project. There are certain areas where I stuck.

  1. How to take mysql_db dump with following options. Currently I am using command module.

–skip-lock-tables --single-transaction --flush-logs --hex-blob --master-data=2 -A --result-file={{ mysql_dump_location }

  1. I have 2 hosts A and B. A has 2 roles and B has 3 roles. How to execute an intermediate role in A after playing the 2nd role in B.

  2. If I have a file with some content and I want to append it to another file (like as cat A >> b).

Thanks