cancel
Showing results for 
Search instead for 
Did you mean: 

Error deploying community using alfresco-ansible-deployment-2.0.0 on CentOS 7

FrankyDee
Champ on-the-rise
Champ on-the-rise

Hi there, 

I'm new to Alfresco and Ansible so please, bare with me.

I deploy a brand new CentOS 7 box and Ansible as described in the Ciommunity install doc as https://docs.alfresco.com/content-services/community/install/ansible/

At first, I couldn't go that far but then in this community I found out I needed to get version 2 of the Alfresco Ansible deployment package which I did.

I'm using a VM for CentOS so I could revert to my clean CentOS 7 install and try it with version 2.0.0

It goes further because now it can download and install Postgres (it seems like it at least but I get some errors

I run ansible as root to make sure I've got all permissions.

Here is what I get :

PLAY [all:!external] ***********************************************************************************************************************

TASK [Gather facts from all hosts] *********************************************************************************************************
ok: [localhost]

PLAY [Database Role] ***********************************************************************************************************************

TASK [common : Get Alfresco Ansible status file] *******************************************************************************************
ok: [localhost]

TASK [common : read installed versions] ****************************************************************************************************
skipping: [localhost]

TASK [common : Fail on unsupported ACS upgrade] ********************************************************************************************
skipping: [localhost]

TASK [common : Fail on unsupported ADW upgrades] *******************************************************************************************
skipping: [localhost]

TASK [common : Fail on unsupported Transformers upgrades] **********************************************************************************
skipping: [localhost]

TASK [common : Fail on unsupported Trouter upgrades] ***************************************************************************************
skipping: [localhost]

TASK [common : Fail on unsupported SFS upgrades] *******************************************************************************************
skipping: [localhost]

TASK [common : Fail on unsupported Search upgrades] ****************************************************************************************
skipping: [localhost]

TASK [common : Fail on unsupported Sync upgrades] ******************************************************************************************
skipping: [localhost]

TASK [common : Include OS specific variables] **********************************************************************************************
ok: [localhost] => (item=/home/francoisd/Downloads/alfresco-ansible-deployment-2.0.0/roles/common/tasks/../vars/CentOS7.yml)

TASK [common : Generate tracking/search shared secret (none provided)] *********************************************************************
ok: [localhost -> localhost]

TASK [common : Set tracking/search shared secret] ******************************************************************************************
ok: [localhost]

TASK [common : Include nexus credentials for local testing] ********************************************************************************
ok: [localhost]

TASK [common : Ensure apt indices are up-to-date] ******************************************************************************************
skipping: [localhost]

TASK [common : Ensure a list of packages installed] ****************************************************************************************
ok: [localhost]

TASK [common : Create alfresco group] ******************************************************************************************************
changed: [localhost]

TASK [common : Create alfresco user] *******************************************************************************************************
changed: [localhost]

TASK [common : Create binaries, configuration, data, logs and download folders] ************************************************************
changed: [localhost] => (item=/opt/alfresco)
changed: [localhost] => (item=/var/opt/alfresco)
changed: [localhost] => (item=/etc/opt/alfresco)
changed: [localhost] => (item=/var/log/alfresco)
changed: [localhost] => (item=/tmp/ansible_artefacts)

TASK [../roles/postgres : Include OS specific variables] ***********************************************************************************
ok: [localhost] => (item=/home/francoisd/Downloads/alfresco-ansible-deployment-2.0.0/roles/postgres/tasks/../vars/CentOS7.yml)

TASK [../roles/postgres : Prepare package manager] *****************************************************************************************
included: /home/francoisd/Downloads/alfresco-ansible-deployment-2.0.0/roles/postgres/tasks/yum_repo.yml for localhost

TASK [../roles/postgres : Install rpm repository] ******************************************************************************************
changed: [localhost]

TASK [../roles/postgres : Install packages] ************************************************************************************************
changed: [localhost]

TASK [../roles/postgres : Initialize the system database] **********************************************************************************
changed: [localhost]

TASK [../roles/postgres : Configure postgresql to listen on all IP interfaces] *************************************************************
changed: [localhost]

TASK [../roles/postgres : Custom postgresql Configuration] *********************************************************************************
changed: [localhost] => (item={u'line': u'max_connections = 300'})
changed: [localhost] => (item={u'line': u'shared_buffers = 2GB', u'state': u'present'})

TASK [../roles/postgres : Configure postgresql client auth] ********************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'unicode object' has no attribute 'local_addr'"}

RUNNING HANDLER [../roles/postgres : restart-postgresql] ***********************************************************************************

PLAY RECAP *********************************************************************************************************************************
localhost : ok=17 changed=8 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0

1 ACCEPTED ANSWER

FrankyDee
Champ on-the-rise
Champ on-the-rise

Ok, since this is not a very successful post, I forget it. I deployed on a Windows biox.....

View answer in original post

1 REPLY 1

FrankyDee
Champ on-the-rise
Champ on-the-rise

Ok, since this is not a very successful post, I forget it. I deployed on a Windows biox.....