In Chapter 9, when running the lamp-infrastructure on Vagrant VMs, there is no MySQL server set as "master" because we never define the mysql_replication_role variable. You can fix this by setting them in the inventory file, next to the hosts IP address in lamp_db group, but maybe there is a more proper way of doing this.
Here is what I did in my inventory file:
# [...] previous groups defined here
[lamp_db]
192.168.2.5 mysql_replication_role=master
192.168.2.6 mysql_replication_role=slave
# [...] other groups defined here