add a $sudoers list entry so we can do dynamically defined sudoers from the items in the group or host vars

This commit is contained in:
Seth Vidal 2013-05-22 18:26:34 +00:00
parent 67729ebdc9
commit 1597d1c83b
2 changed files with 7 additions and 1 deletions

View file

@ -3,3 +3,5 @@ freezes: true
resolvconf: $files/resolv.conf/phx2
rsyslogconf: $files/rsyslog/rsyslog.conf.phx2
fas_client_groups: sysadmin-kernel
sudoers: $private/files/sudo/kernel-qa-sudoers

View file

@ -16,7 +16,11 @@
- 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:
- files: $private/files/sudo/${ansible_fqdn}-sudoers $private/files/sudo/${ansible_hostname}-sudoers $private/files/sudo/${ansible_domain}-sudoers
- files:
- $sudoers
- $private/files/sudo/${ansible_fqdn}-sudoers
- $private/files/sudo/${ansible_hostname}-sudoers
- $private/files/sudo/${ansible_domain}-sudoers
- skip: true
tags:
- config