freeipa.ansible_freeipa.ipalocation (1.11.1) — module

Manage FreeIPA location

Authors: Thomas Woerner (@t-woerner)

preview | supported by community

Install collection

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


Add to requirements.yml

  collections:
    - name: freeipa.ansible_freeipa
      version: 1.11.1

Description

Manage FreeIPA location

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Ensure location my_location1 is present
- freeipa.ansible_freeipa.ipalocation:
    ipaadmin_password: SomeADMINpassword
    name: my_location1
    description: My location 1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Ensure location my_location1 is absent
- freeipa.ansible_freeipa.ipalocation:
    ipaadmin_password: SomeADMINpassword
    name: my_location1
    state: absent

Inputs

    
name:
    aliases:
    - idnsname
    description: The list of location name strings.
    elements: str
    required: true
    type: list

state:
    choices:
    - present
    - absent
    default: present
    description: The state to ensure.
    required: false
    type: str

description:
    description: The IPA location string
    required: false
    type: str

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
    type: str

ipaadmin_password:
    description: The admin password.
    required: false
    type: str

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

ipaadmin_principal:
    default: admin
    description: The admin principal.
    type: str