??????????????
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 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_functionsÏ
lookup: config
author: Ansible Core
version_added: "2.5"
short_description: Lookup current Ansible configuration values
description:
- Retrieves the value of an Ansible configuration setting.
- You can use C(ansible-config list) to see all available settings.
options:
_terms:
description: The key(s) to look up
required: True
on_missing:
description:
- action to take if term is missing from config
- Error will raise a fatal error
- Skip will just ignore the term
- Warn will skip over it but issue a warning
default: error
type: string
choices: ['error', 'skip', 'warn']
sê
- name: Show configured default become user
debug: msg="{{ lookup('config', 'DEFAULT_BECOME_USER')}}"
- name: print out role paths
debug:
msg: "These are the configured role paths: {{lookup('config', 'DEFAULT_ROLES_PATH')}}"
- name: find retry files, skip if missing that key
find:
paths: "{{lookup('config', 'RETRY_FILES_SAVE_PATH')|default(playbook_dir, True)}}"
patterns: "*.retry"
- name: see the colors
debug: msg="{{item}}"
loop: "{{lookup('config', 'COLOR_OK', 'COLOR_CHANGED', 'COLOR_SKIP', wantlist=True)}}"
- name: skip if bad value in var
debug: msg="{{ lookup('config', config_in_var, on_missing='skip')}}"
var:
config_in_var: UNKNOWN
sA
_raw:
description:
- value(s) of the key(s) in the config
( t constants( t AnsibleError( t string_types( t
LookupBaset LookupModulec B` s e Z d d „ Z RS( c K` s% | j d d ƒ j ƒ } t | t ƒ s4 | d
k rG t d | ƒ ‚ n g } xÑ | D]É } t | t ƒ sˆ t d | t | ƒ f ƒ ‚ n y? t t | ƒ } t | ƒ r¹ t d | ƒ ‚ n | j | ƒ WqT t
k
r| d k rö t d | ƒ ‚ q| d k r| j j d | ƒ qqT XqT W| S( Nt
on_missingt errort warnt skipsJ "on_missing" must be a string and one of "error", "warn" or "skip", not %ss: Invalid setting identifier, "%s" is not a string, its a %ss Invalid setting "%s" attempteds Unable to find setting %ss! Skipping, did not find setting %s( s errors warns skip(
t gett lowert
isinstanceR R t typet getattrt Ct callablet appendt AttributeErrort _displayt warning( t selft termst variablest kwargst missingt rett termt result( ( sA /usr/lib/python2.7/site-packages/ansible/plugins/lookup/config.pyt runB s$
N( t __name__t
__module__t NoneR ( ( ( sA /usr/lib/python2.7/site-packages/ansible/plugins/lookup/config.pyR @ s N( t
__future__R R R R t
__metaclass__t
DOCUMENTATIONt EXAMPLESt RETURNt ansibleR R t ansible.errorsR t ansible.module_utils.sixR t ansible.plugins.lookupR R ( ( ( sA /usr/lib/python2.7/site-packages/ansible/plugins/lookup/config.pyt s