1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

pacman: Check for package list before installing (#52246)

Fixes: #45638

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-02-17 16:34:46 +05:30 committed by ansibot
parent 88545b0292
commit 52d8f9c397

View file

@ -474,6 +474,8 @@ def main():
install_packages(module, pacman_path, p['state'], pkgs, pkg_files) install_packages(module, pacman_path, p['state'], pkgs, pkg_files)
elif p['state'] == 'absent': elif p['state'] == 'absent':
remove_packages(module, pacman_path, pkgs) remove_packages(module, pacman_path, pkgs)
else:
module.exit_json(changed=False, msg="No package specified to work on.")
if __name__ == "__main__": if __name__ == "__main__":