diff --git a/lib/ansible/module_utils/network/junos/argspec/facts/facts.py b/lib/ansible/module_utils/network/junos/argspec/facts/facts.py index 38ee82d31b4..58625080c0a 100644 --- a/lib/ansible/module_utils/network/junos/argspec/facts/facts.py +++ b/lib/ansible/module_utils/network/junos/argspec/facts/facts.py @@ -8,15 +8,25 @@ The arg spec for the junos facts module. """ CHOICES = [ 'all', + '!all', 'interfaces', + '!interfaces', 'lacp', + '!lacp', 'lacp_interfaces', + '!lacp_interfaces', 'lag_interfaces', + '!lag_interfaces', 'l2_interfaces', + '!l2_interfaces', 'l3_interfaces', + '!l3_interfaces', 'lldp_global', + '!lldp_global', 'lldp_interfaces', + '!lldp_interfaces', 'vlans', + '!vlans', ] diff --git a/lib/ansible/modules/network/junos/junos_facts.py b/lib/ansible/modules/network/junos/junos_facts.py index 8e32aac65b7..9293ab6fc39 100644 --- a/lib/ansible/modules/network/junos/junos_facts.py +++ b/lib/ansible/modules/network/junos/junos_facts.py @@ -63,7 +63,16 @@ options: to a given subset. Possible values for this argument include all and the resources like interfaces, vlans etc. Can specify a list of values to include a larger subset. - choices: ['all', 'interfaces', 'lacp', 'lacp_interfaces', 'lag_interfaces', 'l2_interfaces', 'l3_interfaces', 'lldp_global', 'lldp_interfaces', 'vlans'] + choices: ['all', '!all', + 'interfaces', '!interfaces', + 'lacp', '!lacp', + 'lacp_interfaces', '!lacp_interfaces', + 'lag_interfaces', '!lag_interfaces', + 'l2_interfaces', '!l2_interfaces', + 'l3_interfaces', '!l3_interfaces', + 'lldp_global', '!lldp_global', + 'lldp_interfaces', '!lldp_interfaces', + 'vlans', '!vlans'] required: false version_added: "2.9" requirements: