freeipa.ansible_freeipa.ipaautomountkey (1.8.4) — module

Manage FreeIPA autommount map

Authors: chris procter

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

Add, delete, and modify an IPA automount map

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: create key TestKey
    freeipa.ansible_freeipa.ipaautomountkey:
      ipaadmin_password: SomeADMINpassword
      locationcn: TestLocation
      mapname: TestMap
      key: TestKey
      info: 192.168.122.1:/exports
      state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: ensure key TestKey is absent
    freeipa.ansible_freeipa.ipaautomountkey:
      ipaadmin_password: SomeADMINpassword
      location: TestLocation
      mapname: TestMap
      key: TestKey
      state: absent

Inputs

    
key:
    choices:
    - name
    - automountkey
    description: automount key to be managed
    required: true

info:
    choices:
    - information
    - automountinformation
    description: Mount information for the key
    required: true

state:
    choices:
    - present
    - absent
    - renamed
    default: present
    description: State to ensure
    required: false

newkey:
    choices:
    - newname
    - newautomountkey
    description: key to change to if state is 'renamed'
    required: true

mapname:
    choices:
    - map
    - automountmapname
    - automountmap
    description: automount map to be managed
    required: true

location:
    choices:
    - automountlocationcn
    - automountlocation
    description: automount location map is in
    required: true

ipaadmin_password:
    description: The admin password
    required: false

ipaadmin_principal:
    default: admin
    description: The admin principal