From b34cfd03b34785937c2cc4616aa831a68f120237 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Thu, 24 Aug 2017 16:00:54 -0400 Subject: [PATCH] implements missing code to handle before and after arguments (#28612) fixes #21683 --- lib/ansible/modules/network/asa/asa_acl.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ansible/modules/network/asa/asa_acl.py b/lib/ansible/modules/network/asa/asa_acl.py index 2601ae0fd8..72730576ec 100644 --- a/lib/ansible/modules/network/asa/asa_acl.py +++ b/lib/ansible/modules/network/asa/asa_acl.py @@ -208,8 +208,15 @@ def main(): commands = str(candidate).split('\n') if commands: + if module.params['before']: + commands[:0] = module.params['before'] + + if module.params['after']: + commands.extend(module.params['after']) + if not module.check_mode: load_config(module, commands) + result['changed'] = True result['updates'] = commands