-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Just ran it against Ansible 2.5.0 and getting this error:
TASK [ANXS.postgresql : PostgreSQL | Make sure the PostgreSQL users are present] *****************************************************************************
task path: /Users/dereklai/OneDrive/proj/ansible/xwiki/xwiki-ansible-playbook/roles/ANXS.postgresql/tasks/users.yml:8
fatal: [192.168.88.22]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The error was: 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name'\n\nThe error appears to have been in '/Users/dereklai/OneDrive/proj/ansible/xwiki/xwiki-ansible-playbook/roles/ANXS.postgresql/tasks/users.yml': line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: PostgreSQL | Make sure the PostgreSQL users are present\n ^ here\n"
}
to retry, use: --limit @/Users/dereklai/OneDrive/proj/ansible/xwiki/xwiki-ansible-playbook/playbook.retry
Any ideas?
Thanks,
Derek
I've included the ansible output below:
==> xwiki: Running provisioner: ansible...
Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.5.0).
Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
xwiki: Running ansible-playbook...
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
ok: [xwiki]
TASK [include_vars] ************************************************************
ok: [xwiki] => (item=/Users/dereklai/OneDrive/proj/ansible/xwiki/xwiki-ansible-playbook/host_vars/default)
TASK [include_vars] ************************************************************
ok: [xwiki]
TASK [Ensure "apache" user exists] *********************************************
skipping: [xwiki]
TASK [Ensure "postfix" user exists] ********************************************
ok: [xwiki]
TASK [Set SSL certs path] ******************************************************
skipping: [xwiki]
TASK [Set SSL certs path] ******************************************************
ok: [xwiki]
TASK [ANXS.postgresql : include_vars] ******************************************
ok: [xwiki] => (item=/Users/dereklai/OneDrive/proj/ansible/xwiki/xwiki-ansible-playbook/roles/ANXS.postgresql/vars/../vars/RedHat.yml)
TASK [ANXS.postgresql : PostgreSQL | Make sure the CA certificates are available] ***
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Add PostgreSQL repository apt-key] ********
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Add PostgreSQL repository] ****************
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Add PostgreSQL repository preferences] ****
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Make sure the dependencies are installed] ***
skipping: [xwiki] => (item=[])
TASK [ANXS.postgresql : PostgreSQL | Install PostgreSQL] ***********************
skipping: [xwiki] => (item=[])
TASK [ANXS.postgresql : PostgreSQL | PGTune] ***********************************
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Make sure the CA certificates are available] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Add PostgreSQL repository] ****************
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Make sure the dependencies are installed] ***
ok: [xwiki] => (item=[u'python-psycopg2', u'python-pycurl', u'glibc-common'])
TASK [ANXS.postgresql : PostgreSQL | Install PostgreSQL] ***********************
ok: [xwiki] => (item=[u'postgresql95-server', u'postgresql95'])
TASK [ANXS.postgresql : PostgreSQL | PGTune] ***********************************
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Extensions | Make sure the postgres contrib extensions are installed | Debian] ***
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Extensions | Make sure the postgres contrib extensions are installed | RedHat] ***
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Extensions | Make sure the development headers are installed] ***
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Extensions | Make sure the postgis extensions are installed] ***
skipping: [xwiki] => (item=[])
TASK [ANXS.postgresql : PostgreSQL | Drop the data directory | RedHat] *********
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Make sure the postgres data directory exists] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Ensure the locale is generated | Debian] ***
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Ensure the locale is generated | RedHat] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Reset the cluster - drop the existing one | Debian] ***
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Reset the cluster - create a new one (with specified encoding and locale) | Debian] ***
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Check whether the postgres data directory is initialized] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Initialize the database | RedHat] *********
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Ensure configuration directory exists] ****
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Update configuration - pt. 1 (pg_hba.conf)] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Update configuration - pt. 2 (postgresql.conf)] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Update configuration - pt. 3 (pgtune)] ****
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Create folder for additional configuration files] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Ensure the systemd directory for PostgreSQL exists | RedHat] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Use the conf directory when starting the Postgres service | RedHat] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Ensure the pid directory for PostgreSQL exists] ***
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Restart PostgreSQL] ***********************
skipping: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Ensure PostgreSQL is running] *************
ok: [xwiki]
TASK [ANXS.postgresql : PostgreSQL | Make sure the PostgreSQL users are present] ***
fatal: [xwiki]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name'\n\nThe error appears to have been in '/Users/dereklai/OneDrive/proj/ansible/xwiki/xwiki-ansible-playbook/roles/ANXS.postgresql/tasks/users.yml': line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: PostgreSQL | Make sure the PostgreSQL users are present\n ^ here\n"}
to retry, use: --limit @/Users/dereklai/OneDrive/proj/ansible/xwiki/xwiki-ansible-playbook/playbook.retry
PLAY RECAP *********************************************************************
xwiki : ok=21 changed=0 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
LM17-T00242:xwiki-ansible-playbook dereklai$ ansible --version
ansible 2.5.0
config file = /Users/dereklai/.ansible.cfg
configured module search path = [u'/Users/dereklai/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/Cellar/ansible/2.5.0/libexec/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.14 (default, Mar 9 2018, 23:57:12) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
LM17-T00242:xwiki-ansible-playbook dereklai$