[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Are you able to run "sudo yum install git -y" ? Maybe the repo that you are using doesn't really have the git package. On Tuesday, August 7, 2018 at 6:51:24 AM UTC-7, Ros Ko wrote: > > Newbie question. I am trying to connect to yum to install packages but I > cannot. The servers are registered t

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Ros Ko
Yes! That works just fine. I can do all I need with YUM from the command line. Its just that Ansible will not connect since there is nothing in /etc/yum.repos.d. I did find this codeblock in the documentation and gathering details to see if it works - rhn_channel: name: rhel-x86_64-server

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Can you add - to your playbook run and post the output ? When you run the yum_repository task/module, it should add a file to /etc/yum.repos.d Perhaps there is some permission issue? also try adding " become: yes" to the yum_repository task On Tuesday, August 7, 2018 at 7:47:31 AM UTC-7,

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Your ansible controller host is probably using a different yum repository than dlw0008a which has the git package. Try ssh into dlw0008a and run "yum search git" and compare that with "yum search git" from the place you said "yum install git" is working. yum search samba On Tuesday, August