Installing rabbitmq-server on ohpc node
In group_vars/all, I leave password blank.
When running playbook, you can
- put your password in
group_vars/allbefore you run the playbook. Or, - pass in with arguments like this:
--extra-vars rabbitmq_user_password="YoUrPasSwOrd"
The command in packer build.json should be something like this:
{
"type": "shell",
"inline": [
"sudo ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` /CRI_XCBC/site-build.yaml -b --extra-vars rabbitmq_user_password='YoUrPasSwOrd'"
]
}