I tried state is present but not updating the rpm,     rpm is already in 
local path



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





On Wednesday, November 9, 2016 at 10:24:41 AM UTC-8, Kai Stian Olstad wrote:
>
> 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/51fa80d5-13da-45e4-b9ab-6c24fc2d274f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to