??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
àUdac @` s‰ d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d d
l Z d d
l
Z
d d l m Z d d l
m Z m Z d
e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d! „ Z e d" k r…e ƒ n d
S(# i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont stableinterfacet statust coret supported_byss
---
module: group
version_added: "0.0.2"
short_description: Add or remove groups
requirements:
- groupadd
- groupdel
- groupmod
description:
- Manage presence of groups on a host.
- For Windows targets, use the M(win_group) module instead.
options:
name:
description:
- Name of the group to manage.
type: str
required: true
gid:
description:
- Optional I(GID) to set for the group.
type: int
state:
description:
- Whether the group should be present or not on the remote host.
type: str
choices: [ absent, present ]
default: present
system:
description:
- If I(yes), indicates that the group created is a system group.
type: bool
default: no
local:
description:
- Forces the use of "local" command alternatives on platforms that implement it.
- This is useful in environments that use centralized authentication when you want to manipulate the local groups.
(e.g. it uses C(lgroupadd) instead of C(groupadd)).
- This requires that these commands exist on the targeted host, otherwise it will be a fatal error.
type: bool
default: no
version_added: "2.6"
non_unique:
description:
- This option allows to change the group ID to a non-unique value. Requires C(gid).
- Not supported on macOS or BusyBox distributions.
type: bool
default: no
version_added: "2.8"
seealso:
- module: user
- module: win_group
author:
- Stephen Fromm (@sfromm)
sY
- name: Ensure group "somegroup" exists
group:
name: somegroup
state: present
N( t to_bytes( t
AnsibleModulet load_platform_subclasst Groupc B` sq e Z d Z d Z d Z d Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z
d
„ Z d „ Z RS(
s-
This is a generic Group manipulation class that is subclassed
based on platform.
A subclass may wish to override the following action methods:-
- group_del()
- group_add()
- group_mod()
All subclasses MUST define platform and distribution (which may be None).
t Generics
/etc/groupc O` s t t | | ƒ S( N( R
R ( t clst argst kwargs( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/group.pyt __new__e s c C` sm | | _ | j d | _ | j d | _ | j d | _ | j d | _ | j d | _ | j d | _ d S( Nt statet namet gidt systemt localt
non_unique( t modulet paramsR R R R R R ( t selfR ( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/group.pyt __init__h s c C` s | j j | ƒ S( N( R t run_command( R t cmd( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/group.pyt execute_commandq s c C` sC | j r d } n d } | j j | t ƒ | j g } | j | ƒ S( Nt lgroupdelt groupdel( R R t get_bin_patht TrueR R ( R t command_nameR ( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/group.pyt group_delt s
c C` ss | j ro xc t j ƒ D]R } | j | j k r | j | j k r | j j d d j | j | j ƒ ƒ q q Wn d S( Nt msgs) GID '{0}' already exists with group '{1}'( R t grpt getgrallt gr_gidR t gr_nameR t fail_jsont format( R t gr( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/group.pyt _local_check_gid_exists| s $c K` sð | j r d } | j ƒ n d } | j j | t ƒ g } x– | D]Ž } | d k r£ | | d k r£ | j d ƒ | j t | | ƒ ƒ | j rÏ | j d ƒ qÏ qA | d k rA | | t k rA | j d ƒ qA qA W| j | j ƒ | j
| ƒ S( Nt lgroupaddt groupaddR s -gs -oR s -r( R R, R R R! t Nonet appendt strR R R ( R R R" R t key( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/group.pyt group_add‚ s
c K` s | j r d } | j ƒ n d } | j j | t ƒ g } | j ƒ } x‡ | D] } | d k rM | | d k rÌ | d t | | ƒ k rÌ | j d ƒ | j t | | ƒ ƒ | j
rÉ | j d ƒ qÉ qÌ qM qM Wt | ƒ d k ræ d
S| j j rö d S| j | j
ƒ | j | ƒ S( Nt lgroupmodt groupmodR i s -gs -oi t i ( NR6 R6 ( i R6 R6 ( R R, R R R! t
group_infoR/ t intR0 R1 R t lent
check_modeR R ( R R R" R t infoR2 ( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/group.pyt group_mod” s&