Hi guys
I have this error when I execute my playbook.
TASK [Stage 1: install repository package - postgresql_repo_CentOS] *************************************************************************************************************************
[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: item.version == “{{ postgresql_version }}”
failed: [host_name] (item={u’repo’: u’http://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm’, u’version’: u’9.6’}) => {“changed”: false, “item”: {“repo”: “http://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm”, “version”: “9.6”}, “module_stderr”: “Shared connection to 10.123.210.160 closed.\r\n”, “module_stdout”: "\r\nTraceback (most recent call last):\r\n File "/tmp/ansible_xOcTfi/ansible_module_yum.py", line 1345, in \r\n main()\r\n File "/tmp/ansible_xOcTfi/ansible_module_yum.py", line 1336, in main\r\n skip_broken, security, params[‘installroot’], allow_downgrade)\r\n File "/tmp/ansible_xOcTfi/ansible_module_yum.py", line 1228, in ensure\r\n res = install(module, pkgs, repoq, yum_basecmd, conf_file, en_repos, dis_repos, installroot=installroot, … “msg”: “MODULE FAILURE”, “rc”: 0}
Thanks