My playbook that installs some generic applications on all of my servers:

- name: Install base applications
  yum: name={{ item }} state=present
  with_items:
    - epel-release
    - vim-enhanced
    - gcc
    - wget
    - libsemanage-python
    - policycoreutils-python
    - setroubleshoot
    - tmux


I get an error message for each of the following packages:
"msg": "No package matching 'libsemanage-python' found available, installed 
or updated", "rc": 126

"msg": "No package matching 'policycoreutils-python' found available, 
installed or updated", "rc": 126

"msg": "No package matching 'setroubleshoot found available, installed or 
updated", "rc": 126

"msg": "No package matching 'tmux' found available, installed or updated", 
"rc": 126

If I remove those packages from the item list, the install goes through 
fine.

I have also verified that if I manually run the following command on the 
remote server, it exists
yum install libsemanage-python policycoreutils-python setroubleshoot tmux

If I remove the package from the item list and install it individually, it 
will *work*:
- name: Install libsemanage-python
  yum: name=libsemanage-python state=present

*Has anyone run into a similar scenario and figured out why it is causing 
this?*

-- 
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/720ae765-0e6c-4d4d-8a25-b9ab2469d5b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to