diff --git a/lib/ansible/modules/network/ios/ios_user.py b/lib/ansible/modules/network/ios/ios_user.py index d3aeb833322..2ab4c3b5b78 100644 --- a/lib/ansible/modules/network/ios/ios_user.py +++ b/lib/ansible/modules/network/ios/ios_user.py @@ -357,7 +357,7 @@ def parse_password_type(data): def map_config_to_obj(module): - data = get_config(module, flags=['| section username']) + data = get_config(module, flags=['| include username']) match = re.findall(r'(?:^(?:u|\s{2}u))sername (\S+)', data, re.M) if not match: