??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
àUdac @` sš d d l m Z m Z m Z e Z d Z d Z d Z d d l Z d d l
m Z d d l m
Z
d d l m Z d d l m Z d
e f d „ ƒ YZ d S( i ( t absolute_importt divisiont print_functionsR
lookup: varnames
author: Ansible Core
version_added: "2.8"
short_description: Lookup matching variable names
description:
- Retrieves a list of matching Ansible variable names.
options:
_terms:
description: List of Python regex patterns to search for in variable names.
required: True
sí
- name: List variables that start with qz_
debug: msg="{{ lookup('varnames', '^qz_.+')}}"
vars:
qz_1: hello
qz_2: world
qa_1: "I won't show"
qz_: "I won't show either"
- name: Show all variables
debug: msg="{{ lookup('varnames', '.+')}}"
- name: Show variables with 'hosts' in their names
debug: msg="{{ lookup('varnames', 'hosts')}}"
- name: Find several related variables that end specific way
debug: msg="{{ lookup('varnames', '.+_zone$', '.+_location$') }}"
sQ
_value:
description:
- List of the variable names requested.
type: list
N( t AnsibleError( t to_native( t string_types( t
LookupBaset LookupModulec B` s e Z d d „ Z RS( c
K` së | d k r t d ƒ ‚ n g } t | j ƒ ƒ } x± | D]© } t | t ƒ sn t d | t | ƒ f ƒ ‚ n y t j | ƒ } Wn/ t k
r² } t d | t
| ƒ f ƒ ‚ n Xx- | D]% } | j | ƒ rº | j | ƒ qº qº Wq: W| S( Ns No variables available to searchs: Invalid setting identifier, "%s" is not a string, its a %ss, Unable to use "%s" as a search parameter: %s(
t NoneR t listt keyst
isinstanceR t typet ret compilet ExceptionR t searcht append(
t selft termst variablest kwargst rett variable_namest termt namet et varname( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/varnames.pyt run8 s
N( t __name__t
__module__R R ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/varnames.pyR 6 s ( t
__future__R R R R t
__metaclass__t
DOCUMENTATIONt EXAMPLESt RETURNR
t ansible.errorsR t ansible.module_utils._textR t ansible.module_utils.sixR t ansible.plugins.lookupR R ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/varnames.pyt s