Thanks Kai I'll check this out! 

On Wednesday, 10 May 2017 11:53:32 UTC+1, Kai Stian Olstad wrote:
>
> On 09.05.2017 21:01, Nicholas Sheridan wrote: 
> > Hi forum **newbie alert** 
> > 
> > I want to do this: 
> > sudo vi /etc/yum.repos.d/kibana.repo 
> > 
> > [kibana-4.4] 
> > name=Kibana repository for 4.4.x packages 
> > baseurl=http://packages.elastic.co/kibana/4.4/centos 
> > gpgcheck=1 
> > gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch 
> > enabled=1 
> > 
> > sudo yum -y install kibana 
> > 
> > So I think I would normally do this: 
> > 
> > --- 
> > - hosts: servers 
> >   sudo: yes 
> >   tasks: 
> >     - name: install kibana 
> >       apt: name= kibana update_cache=yes state=latest 
> > 
> > But I need to write the repo file first before I do a yum - can any one 
> > help with this? 
>
> You are talking about yum but uses the apt module, that should be yum I 
> presume. 
>
> You have all the modules here 
> https://docs.ansible.com/ansible/list_of_all_modules.html 
>
> and if you search for yum you'll find 
>
> yum_repository - Add or remove YUM repositories 
> https://docs.ansible.com/ansible/yum_repository_module.html 
>
> You can also find the documentation on the command line like this. 
>
> $ ansible-doc --list|grep yum 
> yum                                Manages packages with the `yum' 
> package manager 
> yum_repository                     Add or remove YUM repositories 
>
> To get the documentation on the yum_repository module 
> $ ansible-doc yum_repository 
>
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/332e409e-2469-407d-998a-0dd875f96ecc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to