Tip
Check out the repository on GitHub
1 - Installation
Ansible
See the documentation on how to install Ansible.
Dependencies
Install
You will have to install the LinuxHA packages on the target server:
sudo apt install corosync pacemaker crmsh
The xmltodict python module is used to parse config!
It is only needed on the Ansible controller!
python3 -m pip install xmltodict
Configure
After that - configure the basic cluster using the ‘corosync.conf’ file.
See: Docs
Collection
# stable version:
ansible-galaxy collection install ansibleguy.linuxha
# latest version:
ansible-galaxy collection install git+https://github.com/ansibleguy/collection_linuxha.git
# install to specific directory for easier development
cd $PLAYBOOK_DIR
ansible-galaxy collection install git+https://github.com/ansibleguy/collection_linuxha.git -p ./collections