Ansible Quick Start Guide
上QQ阅读APP看书,第一时间看更新

The group management module

The group module has the same input types as the user module, but it affects the host groups. It is a basic module used to create, modify, and delete groups. It requires three basic commands for group management to be available: groupdadd, groupdell, and groupmod.

It is very straightforward to use. A playbook script should look as follows:

    - name: create a new group
group:
name: clustergroup
state: present
gid: 1040