Skip to content
Snippets Groups Projects
Select Git revision
  • a9a016d7b16248ff5015d8689be8b07ec9f389f4
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
22 results

ha-mode.md

Blame
  • README-netgroup.md 3.98 KiB

    Netgroup module

    Description

    The netgroup module allows to ensure presence and absence of netgroups.

    Features

    • Netgroup management

    Supported FreeIPA Versions

    FreeIPA versions 4.4.0 and up are supported by the ipanetgroup module.

    Requirements

    Controller

    • Ansible version: 2.8+

    Node

    • Supported FreeIPA version (see above)

    Usage

    Example inventory file

    [ipaserver]
    ipaserver.test.local

    Example playbook to make sure netgroup "my_netgroup1" is present:

    ---
    - name: Playbook to manage IPA netgroup.
      hosts: ipaserver
      become: no
    
      tasks:
      - name: Ensure netgroup my_netgroup1 is present
        ipanetgroup:
          ipaadmin_password: SomeADMINpassword
          name: my_netgroup1
          description: My netgroup 1

    Example playbook to make sure netgroup "my_netgroup1" is absent:

    ---
    - name: Playbook to manage IPA netgroup.
      hosts: ipaserver
      become: no
    
      tasks:
      - name: Ensure netgroup my_netgroup1 is absent
        ipanetgroup:
          ipaadmin_password: SomeADMINpassword
          name: my_netgroup1
          state: absent

    Example playbook to make sure netgroup is present with user "user1"