commit 85c2d8e949a23774bbc55e7e00f596efbc6eaec2
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Jul 31 15:38:00 2019 +0200
Sync sudo
roles/sudo/tasks/main.yml | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/roles/sudo/tasks/main.yml b/roles/sudo/tasks/main.yml
index c3b419d..5d0b156 100644
--- a/roles/sudo/tasks/main.yml
+++ b/roles/sudo/tasks/main.yml
@@ -1,10 +1,10 @@
---
#
-# This task sets up /etc/sudoers.d/fedora on a machine.
+# This task sets up /etc/sudoers.d/fedora on a machine.
#
#
-# Put in place the default sysadmin-main sudoers file.
+# Put in place the default sysadmin-main sudoers file.
#
- name: setup /etc/sudoers.d/01-sysadmin-main
copy: src="{{ private }}/files/sudo/sysadmin-main"
dest=/etc/sudoers.d/01-sysadmin-main owner=root group=root mode=0600
@@ -33,7 +33,7 @@
- sudoers
#
-# This will move a /etc/sudoers.d/ file in place
+# This will move a /etc/sudoers.d/ file in place
#
- name: setup /etc/sudoers.d/sudoer file for client use
copy: src={{ item }} dest=/etc/sudoers.d/{{ item | basename | replace('.',
'_') }}
@@ -41,7 +41,7 @@
with_first_found:
- files:
- "{{ sudoers }}"
- - "{{ private }}/files/sudo/{{ ansible_fqdn }}-sudoers"
+ - "{{ private }}/files/sudo/{{ inventory_hostname }}-sudoers"
- "{{ private }}/files/sudo/{{ ansible_hostname }}-sudoers"
- "{{ private }}/files/sudo/{{ ansible_domain }}-sudoers"
skip: true
Show replies by date