- add yumrepos.yml - separate from 'base'

- make sudo work with all hosts
add all to kernel-qa
This commit is contained in:
Seth Vidal 2013-05-20 17:14:56 +00:00
parent 2b3a8d2448
commit f7e0918af2
4 changed files with 24 additions and 20 deletions

View file

@ -25,23 +25,6 @@
tags:
- config
- name: put repos on system
action: copy src=$files/common/$item dest=/etc/yum.repos.d/$item
with_items:
- epel6.repo
- rhel6.repo
only_if: '$is_rhel'
tags:
- config
- packages
- name: add infrastructure repo
action: copy src=$files/common/infrastructure.repo dest=/etc/yum.repos.d/infrastructure.repo
# setup /etc/hosts if we can figure it all out
- name: default packages to install
action: yum state=installed name=$item

View file

@ -16,8 +16,7 @@
- name: setup /etc/sudoers.d/fedora for client use
action: copy src=$item dest=/etc/sudoers.d/ owner=root group=root mode=0600
with_first_found:
- $private/files/sudo/${ansible_fqdn}-sudoers
- $private/files/sudo/${ansible_hostname}-sudoers
- $private/files/sudo/${ansible_domain}-sudoers
- files: $private/files/sudo/${ansible_fqdn}-sudoers $private/files/sudo/${ansible_hostname}-sudoers $private/files/sudo/${ansible_domain}-sudoers
- skip: true
tags:
- config

18
tasks/yumrepos.yml Normal file
View file

@ -0,0 +1,18 @@
---
- name: put repos on system
action: copy src=$files/common/$item dest=/etc/yum.repos.d/$item
with_items:
- epel6.repo
- rhel6.repo
only_if: '$is_rhel'
tags:
- config
- packages
- name: add infrastructure repo
action: copy src=$files/common/infrastructure.repo dest=/etc/yum.repos.d/infrastructure.repo
tags:
- config
- packages