2 weeks ago
Team,
This need more attention to hyland people, they havn't changed their documentation
https://alfresco.github.io/alfresco-ansible-deployment/deployment-guide.html
which shows steps but that are not at all working ( giving each stage different errors which they didn't mentioned anywhere)
If anyone try on fresh virtualbox image ubuntu 22.04 and try to setup alfresco using ansible many challenges are there.
Given document is not at all justify proper steps.
I am trying to setup inventory_local.yml ( local setup )
After fixing many errors, I am getting multiple errors, that variables not defined. Either these project is not updated or this one is not working, please validate your repo
git clone https://github.com/Alfresco/alfresco-ansible-deployment.git
at every execution of below command it gives some missing variables or ERRORS (Ideally it should work at first attempt as per documentations)
cd ~/alfresco-ansible-deployment
python3.11 -m pipenv run ansible-playbook \
-i /home/ubox01/alfresco-ansible-deployment/inventory_local.yml playbooks/acs.yml \
-e autogen_unsecure_secrets=true
example error :
TASK [java : Validating arguments against arg spec 'main' - Main entrypoint for the java role] *********************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "{{ java_version.split('+')[0] }}: {{ acs_play_java_version }}: {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined. {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined. {{ acs_play_java_version }}: {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined. {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined. {{ java_version.split('+')[0] }}: {{ acs_play_java_version }}: {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined. {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined. {{ acs_play_java_version }}: {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined. {{ acs_play_default_java_version }}: 'acs_play_default_java_version' is undefined. 'acs_play_default_java_version' is undefined"}
it gives similar ERROR, not sure why hyland not mention in their documentations.
Please help.
Everyone pointing to link to documentation, that I am aware, but hope someone purely tested it
1 weeks ago
Hello,
This should be a classic Ansible headache. Use a relative path for the inventory file instead of an absolute one. With an absolute path, Ansible fails to load all the variables properly, which leads to errors like the ones you are seeing. The documentation you referenced does use a relative path, so following that should fix the problem.
a week ago
Can you provide me one example, is that to be applied on command or somewhere else?
Monday
It's just:
cd ~/alfresco-ansible-deployment
python3.11 -m pipenv run ansible-playbook \
-i inventory_local.yml playbooks/acs.yml \
-e autogen_unsecure_secrets=true
Thursday
Hi Gionn,
Ok I will check that out using relative path, but main issue again is , every time it gives some variable not found error . If you see above error, it says
TASK [java : Validating arguments against arg spec 'main' - Main entrypoint for the java role] *********************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "{{ java_version.split('+')[0] }}: {{ acs_play_java_version }}: {{ acs_play_default_java_version }}:
If we fix next time it will give another variable issue. Is that related to path only?
Explore our Alfresco products with the links below. Use labels to filter content by product module.