ansible_dynamic_inventory/dynamic_inv_class.py
def add_group(self, *, grp_name: str = None, grp_vars: dict = None):
        """ creates an ansible group with default values """
        my_vars = {"vars": self.chk_vars(grp_vars)}
        self.inv.setdefault(grp_name, {"hosts": []}).update(my_vars)
        return self.inv[grp_name]["hosts"]
 creates an ansible group with default values 
creates an ansible group with default values
creates an ansible group with default values
def add_group(self, *, grp_name: str = None, grp_vars: dict = None):
        my_vars = {"vars": self.chk_vars(grp_vars)}
        self.inv.setdefault(grp_name, {"hosts": []}).update(my_vars)
        return self.inv[grp_name]["hosts"]
def add_group ( self , * , grp_name : str = None , grp_vars : dict = None ) : my_vars = { "vars" : self . chk_vars ( grp_vars ) } self . inv . setdefault ( grp_name , { "hosts" : [ ] } ) . update ( my_vars ) return self . inv [ grp_name ] [ "hosts" ]
creates an ansible group with default values
creates an ansible group with default values
""" creates an ansible group with default values """
self
grp_name
str
grp_vars
dict