Hi All ;) I currently am writing automation for a Percona Galera cluster which consists of 3 nodes. I am uploading a config file with:
- name: upload my.cnf template: src=my.cnf.j2 dest=/etc/my.cnf when: "'db_cluster' in group_names" register: db_cluster_restart When the above config file changes I would like to restart the db cluster node by node: 1) restart mysql on 1st cluster node and wait for the restart to finish 2) restart mysql on 2nd cluster node and wait for the restart to finish 3) restart mysql on 3rd cluster node and wait for the restart to finish My cluster group is defined this way: [db-cluster] db-cluster-0 ansible_ssh_host=192.168.0.1 db-cluster-1 ansible_ssh_host=192.168.0.2 db-cluster-2 ansible_ssh_host=192.168.0.3 What is the best way to achieve this kind of functionality? BR, Rafal. -- 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/87045214-d34c-475a-afce-65159f4d5778%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
