group - Add or remove groups

Author:Stephen Fromm

Synopsis

Manage presence of groups on a host.

Options

parameter required default choices comments
gid no
    Optional GID to set for the group.
    name yes
      Name of the group to manage.
      state no present
      • present
      • absent
      Whether the group should be present or not on the remote host.
      system no no
      • yes
      • no
      If yes, indicates that the group created is a system group.

      Note

      Requires groupadd

      Note

      Requires groupdel

      Note

      Requires groupmod

      Examples


      # Example group command from Ansible Playbooks
      - group: name=somegroup state=present
      

      Table Of Contents

      Previous topic

      firewalld - Manage arbitrary ports/services with firewalld

      Next topic

      hostname - Manage hostname