Failed to install ACS via Ansible on CentOS7 server ! need help

cancel
Showing results for 
Search instead for 
Did you mean: 
meiqiu
Member II

Failed to install ACS via Ansible on CentOS7 server ! need help

Hi there!

Yesterday i tryed to Install ACS Community version via Ansible on a CentOS7 server .

First I followed the instuctions to set up Ansible , then I execute this command downbelow:

[root@localhost alfresco-ansible-deployment-1.1.1]# ansible-playbook playbooks/acs.yml -i inventory_local.yml -e "@community-extra-vars.yml"

And after this an error msg shows up:

[root@localhost download]# ls
alfresco-ansible-deployment-1.1.1  alfresco-ansible-deployment-1.1.1.zip  alfresco-ansible-deployment-2.0.0  alfresco-ansible-deployment-2.0.0.zip
[root@localhost download]# cd alfresco-ansible-deployment-1.1.1
[root@localhost alfresco-ansible-deployment-1.1.1]# ansible-playbook playbooks/acs.yml -i inventory_local.yml -e "@community-extra-vars.yml"

PLAY [Database Role] ************************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************************ok: [database_1]

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

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

TASK [common : Ensure a list of packages installed] *****************************************************************************************************************************************ok: [database_1] => (item=sudo)
ok: [database_1] => (item=unzip)
ok: [database_1] => (item=tar)
ok: [database_1] => (item=libselinux-python)
ok: [database_1] => (item=libsemanage-python)
ok: [database_1] => (item=gpg)

TASK [common : Create alfresco group] *******************************************************************************************************************************************************ok: [database_1]

TASK [common : Create alfresco user] ********************************************************************************************************************************************************ok: [database_1]

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

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

TASK [../roles/postgres : Prepare package manager] ******************************************************************************************************************************************included: /home/download/alfresco-ansible-deployment-1.1.1/roles/postgres/tasks/yum_repo.yml for database_1

TASK [../roles/postgres : Install rpm repository] *******************************************************************************************************************************************ok: [database_1]

TASK [../roles/postgres : Install packages] *************************************************************************************************************************************************fatal: [database_1]: FAILED! => {"msg": "[u'postgresql{{ dependencies_version.postgres_major_version }}-server', u'postgresql{{ dependencies_version.postgres_major_version }}', u\"python{{ '3' if ansible_python_version.split('.')[0] == '3' }}-psycopg2\"]: the inline if-expression on line 1 evaluated to false and no else section was defined."}

PLAY RECAP **********************************************************************************************************************************************************************************database_1                 : ok=10   changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

then i tryed to download the version 2.0.0 Ansible playbook and do so  as another similar topic says , and again, another problem comes : 

[root@localhost alfresco-ansible-deployment-1.1.1]# cd -
/home/download
[root@localhost download]# cd alfresco-ansible-deployment-2.0.0
[root@localhost alfresco-ansible-deployment-2.0.0]# ansible-playbook playbooks/acs.yml -i inventory_local.yml -e "@community-extra-vars.yml"
ERROR! 'notify' is not a valid attribute for a Block

The error appears to be in '/home/download/alfresco-ansible-deployment-2.0.0/roles/nginx/tasks/vhosts.yml': line 37, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Vhosts config
  ^ here

Now, i don't know what to do ,but still want to use ACS.  so  plz ! can somebody help !!!

 

1 Reply
alxgomz
Alfresco Employee

Re: Failed to install ACS via Ansible on CentOS7 server ! need help

I just replied in the other thread you mentioned before I saw this one. https://hub.alfresco.com/t5/alfresco-content-services-forum/failed-to-install-acs-via-ansible-perhap...