mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-16 18:51:23 +00:00
fcdf86b31c
This commit appends the README.md to state that yaml files should start with `---` and end with `...`. This also addresses some linting warnings that were not appearing during pre-commit on local system.
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
---
|
|
# Creates necessary privileges for services
|
|
- name: "Creating necessary privileges"
|
|
freeipa.ansible_freeipa.ipaprivilege:
|
|
ipaadmin_password: "{{ ipaadmin_password }}"
|
|
name: "{{ item.privilege }}"
|
|
description: "{{ item.description }}"
|
|
loop: "{{ ipaprivileges }}"
|
|
when: ipaprivileges is defined
|
|
tags:
|
|
- rbac
|
|
|
|
- name: "Creating permissions"
|
|
freeipa.ansible_freeipa.ipaprivilege:
|
|
ipaadmin_password: "{{ ipaadmin_password }}"
|
|
name: "{{ item.privilege }}"
|
|
permission: "{{ item.permissions }}"
|
|
action: member
|
|
loop: "{{ ipaprivileges }}"
|
|
when: ipaprivileges is defined
|
|
tags:
|
|
- rbac
|
|
|
|
- name: "Creating roles based on custom privileges"
|
|
freeipa.ansible_freeipa.iparole:
|
|
ipaadmin_password: "{{ ipaadmin_password }}"
|
|
name: "{{ item.role }}"
|
|
privilege: "{{ item.privilege }}"
|
|
user: "{{ item.user|default(omit) }}"
|
|
loop: "{{ ipaprivileges }}"
|
|
when: ipaprivileges is defined
|
|
tags:
|
|
- rbac
|
|
|
|
- name: "Creating roles based on standard privileges"
|
|
freeipa.ansible_freeipa.iparole:
|
|
ipaadmin_password: "{{ ipaadmin_password }}"
|
|
name: "{{ item.role }}"
|
|
privilege: "{{ item.privileges }}"
|
|
user: "{{ item.user|default(omit) }}"
|
|
loop: "{{ iparoles }}"
|
|
when: iparoles is defined
|
|
tags:
|
|
- rbac
|
|
...
|