aboutsummaryrefslogtreecommitdiff
path: root/roles/sudo
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2016-10-06 15:22:05 -0400
committerB Stack <bgstack15@gmail.com>2016-10-06 15:22:05 -0400
commit2c3fb0d51f0e1044eaca306cc74045b01a202891 (patch)
tree83bb69098cfc5d07d3a5ceb27794f1a2fbaae00b /roles/sudo
parentFixed a few things, added ldap_certs stub (diff)
downloadansible01-2c3fb0d51f0e1044eaca306cc74045b01a202891.tar.gz
ansible01-2c3fb0d51f0e1044eaca306cc74045b01a202891.tar.bz2
ansible01-2c3fb0d51f0e1044eaca306cc74045b01a202891.zip
built ldap_certs, fixed sudo taskHEADmaster
Diffstat (limited to 'roles/sudo')
-rw-r--r--roles/sudo/tasks/main.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/sudo/tasks/main.yml b/roles/sudo/tasks/main.yml
index 07fda25..0b712f5 100644
--- a/roles/sudo/tasks/main.yml
+++ b/roles/sudo/tasks/main.yml
@@ -8,11 +8,14 @@
- '{{ ansible_distribution }}.yml'
- default.yml
-- stat: path='{{ sudo_rules_dir }}/{{ item.priority }}_{{ item.name }}' #'
+- name: sudo stat files described by strings
+ stat: path='{{ sudo_rules_dir }}/{{ item.priority }}_{{ item.name }}' #'
with_items:
- '{{ sudo_strings }}'
register: "s"
- when: sudo_strings is defined
+ when:
+ - sudo_strings is defined
+ - item.priority is defined
- name: sudo deploy rules from files
template:
@@ -60,4 +63,5 @@
- '{{ s.results }}'
when:
- s is defined
+ - sudo_strings is defined
- ( not item.item.exists ) or ( '{{ item.item.exists | lower }}' == 'false' )
bgstack15