# repo error

**URL:** <https://forum.ansible.com/t/repo-error/30008>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [March 28, 2019, 10:03am UTC](https://forum.ansible.com/t/repo-error/30008 "2019-03-28T10:03:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oxs](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@Oxs](https://forum.ansible.com/u/Oxs)\
**Post date:** [March 28, 2019, 10:03am UTC](https://forum.ansible.com/t/repo-error/30008/1 "2019-03-28T10:03:52Z")

</div>

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](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](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

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [March 28, 2019, 10:11am UTC](https://forum.ansible.com/t/repo-error/30008/2 "2019-03-28T10:11:47Z")

</div>

Hi,

Two things here:

1/ A warning about when clause you need to change

2/ An error, but without context a little bit difficult to understand

Please provide playbook so we can help

Regards,

JYL
