freeipa.ansible_freeipa.ipagroup (1.8.4) — module

Manage FreeIPA groups

Authors: Thomas Woerner

preview | supported by community

Install collection

Install with ansible-galaxy collection install freeipa.ansible_freeipa:==1.8.4


Add to requirements.yml

  collections:
    - name: freeipa.ansible_freeipa
      version: 1.8.4

Description

Manage FreeIPA groups

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create group ops with gid 1234
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: ops
    gidnumber: 1234
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create group sysops
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: sysops
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create group appops
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: appops
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Add user member pinky to group sysops
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: sysops
    action: member
    user:
    - pinky
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Add user member brain to group sysops
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: sysops
    action: member
    user:
    - brain
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Add group members sysops and appops to group sysops
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: ops
    group:
    - sysops
    - appops
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create a non-POSIX group
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: nongroup
    nonposix: yes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Turn a non-POSIX group into a POSIX group.
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: nonposix
    posix: yes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create an external group and add members from a trust to it.
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: extgroup
    external: yes
    externalmember:
    - WINIPA\Web Users
    - WINIPA\Developers
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Remove goups sysops, appops, ops and nongroup
- freeipa.ansible_freeipa.ipagroup:
    ipaadmin_password: SomeADMINpassword
    name: sysops,appops,ops, nongroup
    state: absent

Inputs

    
gid:
    aliases:
    - gidnumber
    description: The GID
    required: false

name:
    aliases:
    - cn
    description: The group name
    required: false

user:
    description: List of user names assigned to this group.
    required: false
    type: list

group:
    description: List of group names assigned to this group.
    required: false
    type: list

posix:
    description: Create a non-POSIX group or change a non-POSIX to a posix group.
    required: false
    type: bool

state:
    choices:
    - present
    - absent
    default: present
    description: State to ensure

action:
    choices:
    - member
    - group
    default: group
    description: Work on group or member level

service:
    description:
    - List of service names assigned to this group.
    - Only usable with IPA versions 4.7 and up.
    required: false
    type: list

external:
    description: Allow adding external non-IPA members from trusted domains
    required: false
    type: bool

nonposix:
    description: Create as a non-POSIX group
    required: false
    type: bool

nomembers:
    description: Suppress processing of membership attributes
    required: false
    type: bool

description:
    description: The group description
    required: false

externalmember:
    aliases:
    - ipaexternalmember
    - external_member
    description:
    - List of members of a trusted domain in DOM\name or name@domain form.
    required: false
    type: list

idoverrideuser:
    description:
    - User ID overrides to add
    required: false
    type: list

ipaapi_context:
    choices:
    - server
    - client
    description: 'The context in which the module will execute. Executing in a

      server context is preferred. If not provided context will be

      determined by the execution environment.

      '
    required: false

ipaadmin_password:
    description: The admin password.
    required: false

ipaapi_ldap_cache:
    default: true
    description: Use LDAP cache for IPA connection.
    type: bool

ipaadmin_principal:
    default: admin
    description: The admin principal.

membermanager_user:
    description:
    - List of member manager users assigned to this group.
    - Only usable with IPA versions 4.8.4 and up.
    required: false
    type: list

membermanager_group:
    description:
    - List of member manager groups assigned to this group.
    - Only usable with IPA versions 4.8.4 and up.
    required: false
    type: list