Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

havlasme/ansible-role-system_groups

Repository files navigation

system_groups

Ansible Galaxy Build Status Latest Tag

An Ansible role to manage system groups.

Group root can't be managed using this role for security reasons.

Requirements

None.

Role Variables

# list of system groups
system_groups__list: []
## group name
#  - name: string
## OPTIONAL: if set to true, group is removed from host
#    disabled: bool
## OPTIONAL: group id
#    gid: int
## OPTIONAL: system group flag
#    system: bool

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - role: "tomashavlas.system_groups"
      system_groups__list:
          - name: "usergrp"
            gid: 1564
          - name: "systemgrp"
            system: true
          - name: "disabledgrp"
            disabled: true

For more examples see test cases.

License

BSD

Author Information

Created by Tomáš Havlas in 2016.