ipa/client: Add common IPA configuration

The `common.yml` sub-playbook runs tasks necessary for the `hbac.yml`
and `sudo.yml` sub-playbooks, but not specific to either.

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-01-22 13:29:48 +01:00 committed by nphilipp
parent 17174c37b9
commit e63d94fc74
3 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,5 @@
## Cluster-wide rules
- name: Check that sysadmin-main group exists
command: "getent group sysadmin-main"
changed_when: False

View file

@ -1,9 +1,5 @@
## Cluster-wide rules
- name: Check that sysadmin-main group exists
command: "getent group sysadmin-main"
changed_when: False
- name: "Give members of group sysadmin-main access to anything, anywhere"
ipahbacrule:
name: "usergroup/sysadmin-main"

View file

@ -22,6 +22,15 @@
- ipa/client
- config
- name: Basic configuration for client on IPA cluster
delegate_to: "{{ ipa_server }}"
import_tasks: common.yml
# don't muck with prod for now
when: env == 'staging'
tags:
- ipa/client
- config
- name: Configure HBAC on IPA cluster
delegate_to: "{{ ipa_server }}"
import_tasks: hbac.yml