- add yumrepos.yml - separate from 'base'
- make sudo work with all hosts add all to kernel-qa
This commit is contained in:
parent
2b3a8d2448
commit
f7e0918af2
4 changed files with 24 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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
18
tasks/yumrepos.yml
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue