Newbie question. I am trying to connect to yum to install packages but I cannot. The servers are registered to a spacewalk server and the channel I need to pull from does not show up in /etc/yum.repos.d. I tried to put the base url of the repo it gets its packages from in the playbook, but it still does not work. What Am I doing wrong?
--- - hosts: dlw0008a become: yes tasks: - name: Add repository yum_repository: name: Company description: Company YUM repo baseurl: http://clw0053a.linux.ccrt.us/repos/atlanticus/$releasever/$basearch/ - name: list files in folder command: touch ansible-test - name: Install git yum: name=git state=present tags: git ----------------------------------------------------------- PLAY [dlw0008a] ******************************************************************************** TASK [Gathering Facts] ************************************************************************* ok: [dlw0008a] TASK [Add repository] ************************************************************************** ok: [dlw0008a] TASK [list files in folder] ******************************************************************** [WARNING]: Consider using the file module with state=touch rather than running touch. If you need to use command because file is insufficient you can add warn=False to this command task or set command_warnings=False in ansible.cfg to get rid of this message. changed: [dlw0008a] TASK [Install git] ***************************************************************************** fatal: [dlw0008a]: FAILED! => {"changed": false, "msg": "No package matching 'git' found available, installed or updated", "rc": 126, "results": ["No package matching 'git' found available, installed or updated"]} to retry, use: --limit @/home/ec2-user/playbooks/ls.retry PLAY RECAP ************************************************************************************* dlw0008a : ok=3 changed=1 unreachable=0 failed=1 -- 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/dab9cf76-9739-45f4-9aed-87497a69e00f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.