A bit more cleanup, perhaps this will actually work.

This commit is contained in:
Kevin Fenzi 2014-02-28 20:41:33 +00:00
parent 5ca8240091
commit 9b8cbe9780

View file

@ -7,7 +7,7 @@
# Put in place the default sysadmin-main sudoers file.
#
- name: setup /etc/sudoers.d/sysadmin-main
action: copy src="{{ private }}/files/sudo/sysadmin-main" dest=/etc/sudoers.d/ owner=root group=root mode=0600
copy: src="{{ private }}/files/sudo/sysadmin-main" dest=/etc/sudoers.d/ owner=root group=root mode=0600
when: sudoers-main is not defined
tags:
- config
@ -15,7 +15,7 @@
# Put in place the default sysadmin-main sudoers file. (nopasswd edition)
#
- name: setup /etc/sudoers.d/sysadmin-main (nopasswd)
action: copy src="{{ private }}/files/sudo/sysadmin-main-nopassword" dest=/etc/sudoers.d/ owner=root group=root mode=0600
copy: src="{{ private }}/files/sudo/sysadmin-main-nopasswd" dest=/etc/sudoers.d/ owner=root group=root mode=0600
when: sudoers-main == 'nopasswd'
tags:
- config