Hello guys, I'm new to Ansible. Could anyone please help me with my question?
I'm trying to automate the entire process of setting up a 2-node PXC. All the package installation and file configuration work have already been automated using ansible. But I'm stuck in the last steps. Here are the remaining steps: 1. Use '/etc/init.d/mysql bootstrap-pxc' to bootstrap the cluster from node1, keep the mysql instance on node2 shut. 2. Connect to mysql on node1 and create accounts for xtrabackup 3. Use '/etc/init.d/mysql start' to start the mysql instance on node2 and it will join the cluster automatically. I would like to know if Ansible can control the command execution orders between different nodes. The question is actually not specific to PXC, but applies to other cluster applications where order matters. Thanks, Jason -- 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/f1b9d7c1-8c10-4124-b282-32ee942476d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
