Chapter 9. Executing the deployment playbook

  1. Change into the hc-ansible-deployment directory on the first node:

    # cd /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment
  2. Run the following command as the root user to start the deployment process:

    # ansible-playbook -i gluster_inventory.yml hc_deployment.yml --extra-vars='@he_gluster_vars.json' --ask-vault-pass

    Enter the vault password when prompted to start deployment.

    Important

    If you are using Red Hat Virtualization Host (RHVH) 4.4 SP1 based on Red Hat Enterprise Linux 8.6 (RHEL 8.6), add the -e 'ansible_python_interpreter=/usr/bin/python3.6' parameter:

    # ansible-playbook -e 'ansible_python_interpreter=/usr/bin/python3.6' -i gluster_inventory.yml hc_deployment.yml --extra-vars='@he_gluster_vars.json' --ask-vault-pass