On 09. nov. 2016 19:04, Rayees Namathponnan wrote:
Graylog server is running in my host *version*
"graylog-server-2.1.1-3.noarch.rpm", i am trying to upgrade this to
"graylog-server-2.1.2-1.noarch.rpm"

Here is my ansible script

- name: Install Graylog server
  yum: name=/tmp/graylog-server-2.1.2-1.noarch.rpm state=latest


During upgrade installation failing with below error, but i can see
/tmp/graylog-server-2.1.2-1.noarch.rpm

TASK [upgrade-graylog : Install Graylog server]
********************************
fatal: [198.1xx.xxx.xx]: FAILED! => {"changed": false, "failed": true,
"msg": "No Package matching '/tmp/graylog-server-2.1.2-1.noarch.rpm' found
available, installed or updated", "rc": 0, "results": []}


Any help highly appreciated .

When name is local path or a url only state=present is supported.
From the documentation
"You can also pass a url or a local path to a rpm file (using state=present)."

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ad66a2df-15f3-d11e-e508-0db477a88ae9%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to