From 7156a4b8f763095a8c5a9ecab39ca64f92794f9c Mon Sep 17 00:00:00 2001 From: Francisco-Xiq Date: Sun, 17 May 2026 19:55:59 -0300 Subject: [PATCH] feat: .github/BOTMETA.yml new entry --- .github/BOTMETA.yml | 2 ++ plugins/modules/apache2_site.py | 11 +++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/BOTMETA.yml b/.github/BOTMETA.yml index 963ef722b2..a9be12bbcb 100644 --- a/.github/BOTMETA.yml +++ b/.github/BOTMETA.yml @@ -478,6 +478,8 @@ files: $modules/apache2_module.py: ignore: robinro maintainers: berendt n0trax + $modules/apache2_site.py: + maintainers: Francisco-Xiq $modules/apk.py: ignore: kbrebanov labels: apk diff --git a/plugins/modules/apache2_site.py b/plugins/modules/apache2_site.py index d141ad16ba..c53b7ca8f2 100644 --- a/plugins/modules/apache2_site.py +++ b/plugins/modules/apache2_site.py @@ -60,6 +60,7 @@ name: """ import os + from ansible.module_utils.basic import AnsibleModule @@ -89,10 +90,7 @@ def main(): a2ensite = module.get_bin_path("a2ensite", required=True) rc, stdout, stderr = module.run_command([a2ensite, name]) if rc != 0: - module.fail_json( - msg=f"Failed to enable site {name}: {stderr}", - rc=rc, stdout=stdout, stderr=stderr - ) + module.fail_json(msg=f"Failed to enable site {name}: {stderr}", rc=rc, stdout=stdout, stderr=stderr) elif not want_enabled and is_enabled: changed = True @@ -100,10 +98,7 @@ def main(): a2dissite = module.get_bin_path("a2dissite", required=True) rc, stdout, stderr = module.run_command([a2dissite, name]) if rc != 0: - module.fail_json( - msg=f"Failed to disable site {name}: {stderr}", - rc=rc, stdout=stdout, stderr=stderr - ) + module.fail_json(msg=f"Failed to disable site {name}: {stderr}", rc=rc, stdout=stdout, stderr=stderr) module.exit_json(changed=changed, name=name)