Compare commits

..

No commits in common. "e2a11dbaccf2ba8713ec3dcbcfbb8bd18c099dbc" and "5c0f7ba0bd031f3d57e642ce98de6d940d4a8879" have entirely different histories.

1315 changed files with 2527 additions and 6270 deletions

View file

@ -1,9 +1,3 @@
## 0.2.0a11 (2025-09-08)
### Fix
- "all" group are now compose with host and we remove duplicated hostname
## 0.2.0a10 (2025-07-04)
### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_ansible"
version = "0.2.0a11"
version = "0.2.0a10"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail output ansible"

View file

@ -91,8 +91,7 @@ class RougailOutputAnsible(RougailOutputJson):
self.config.property.read_write()
def json_to_ansible(self):
ret = {"_meta": {"hostvars": {}}, "all": {"children": ["ungrouped"], "hosts": []}}
all_children = []
ret = {"_meta": {"hostvars": {}}, "all": {"children": ["ungrouped"]}}
if "_warnings" in self.dico:
_warnings = self.dico.pop("_warnings")
if self.export_warnings:
@ -142,10 +141,8 @@ class RougailOutputAnsible(RougailOutputJson):
ret.setdefault(name, {}).setdefault("hosts", []).append(
host_name
)
if host not in all_children:
all_children.append(host)
ret["all"]["hosts"].append(host_name)
else:
ret["all"]["children"].append(name)
ret[name] = hosts
for hosts in ret_hosts.values():
for host, domain_name in hosts.items():

View file

@ -1 +1 @@
__version__ = "0.2.0a11"
__version__ = "0.2.0a10"

View file

@ -11,11 +11,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -13,11 +13,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -13,11 +13,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -13,11 +13,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -23,11 +23,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -35,11 +35,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -29,11 +29,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -31,11 +31,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -29,11 +29,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -33,11 +33,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -33,11 +33,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -25,11 +25,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -23,11 +23,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -23,11 +23,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -25,11 +25,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -31,11 +31,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -23,11 +23,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -23,11 +23,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -63,11 +63,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -31,11 +31,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -63,11 +63,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -63,11 +63,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -25,11 +25,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -75,11 +75,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -25,11 +25,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -37,11 +37,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -19,11 +19,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -27,11 +27,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -21,11 +21,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

View file

@ -17,11 +17,8 @@
},
"all": {
"children": [
"ungrouped"
],
"hosts": [
"GROUP1_01",
"GROUP2_01"
"ungrouped",
"groups"
]
},
"group1": {

Some files were not shown because too many files have changed in this diff Show more