mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
fix module sanity test
This commit is contained in:
parent
14d1c88d31
commit
64bb002f77
1 changed files with 3 additions and 2 deletions
|
|
@ -864,8 +864,8 @@ def main() -> None:
|
|||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
name=dict(type="str", required=True, aliases=["config_name"]),
|
||||
state=dict(type="str", default="present", choices=["present", "absent"]),
|
||||
config_dir=dict(type="path", default="/etc/logrotate.d"),
|
||||
state=dict(type="str", choices=["present", "absent"]),
|
||||
config_dir=dict(type="path"),
|
||||
paths=dict(type="list", elements="path"),
|
||||
rotation_period=dict(
|
||||
type="str",
|
||||
|
|
@ -920,6 +920,7 @@ def main() -> None:
|
|||
)
|
||||
|
||||
logrotate_bin = module.get_bin_path("logrotate", required=True)
|
||||
|
||||
logrotate_config = LogrotateConfig(module, logrotate_bin)
|
||||
result = logrotate_config.apply()
|
||||
module.exit_json(**result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue