ipa/client: only install sudoers on FAS clients
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
b96fd8d300
commit
a4b5dfce5b
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
- 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
|
||||
when: sudoers_main is not defined
|
||||
when: "sudoers_main is not defined and (primary_auth_source | default('fas')) == 'fas'"
|
||||
tags:
|
||||
- config
|
||||
- sudo
|
||||
|
@ -44,6 +44,7 @@
|
|||
- "{{ private }}/files/sudo/{{ ansible_hostname }}-sudoers"
|
||||
- "{{ private }}/files/sudo/{{ ansible_domain }}-sudoers"
|
||||
- "{{ private }}/files/sudo/default"
|
||||
when: "(primary_auth_source | default('fas')) == 'fas'"
|
||||
tags:
|
||||
- config
|
||||
- sudo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue