ipa/client: Split up shell access HBAC rule tasks
Need to create the rule, then add members to it. Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
193aefa78e
commit
cd551a0f07
1 changed files with 11 additions and 3 deletions
|
@ -92,16 +92,24 @@
|
|||
- ipa_client_shell_groups
|
||||
- ipa_client_sudo_groups
|
||||
|
||||
- name: Give certain groups shell access per host group
|
||||
- name: Ensure shell access HBAC rule exists
|
||||
delegate_to: "{{ item[0] }}"
|
||||
ipahbacrule:
|
||||
name: "hostgroup/{{ item[1] }}/shell-access"
|
||||
description: "Grant shell access on host group {{ item[1] }}"
|
||||
ipaadmin_password: "{{ ipa_server_admin_passwords[item[0]] }}"
|
||||
action: member
|
||||
hbacsvcgroup:
|
||||
- shell-access
|
||||
state: present
|
||||
group: "{{ ipa_server_host_groups_dict[item[0]][item[1]]['shell_groups'] }}"
|
||||
hostgroup: "{{ item[1] }}"
|
||||
loop: "{{ ipa_server_host_groups }}"
|
||||
|
||||
- name: Give certain groups shell access per host group
|
||||
delegate_to: "{{ item[0] }}"
|
||||
ipahbacrule:
|
||||
name: "hostgroup/{{ item[1] }}/shell-access"
|
||||
ipaadmin_password: "{{ ipa_server_admin_passwords[item[0]] }}"
|
||||
action: member
|
||||
state: present
|
||||
group: "{{ ipa_server_host_groups_dict[item[0]][item[1]]['shell_groups'] }}"
|
||||
loop: "{{ ipa_server_host_groups }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue