??????????????
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
m Z d d l m
Z
d d l m Z m Z d d l m Z d e
f d
„ ƒ YZ d e f d „ ƒ YZ d
e f d „ ƒ YZ d S( i ( t absolute_importt divisiont print_functions*
lookup: lastpass
author:
- Andrew Zenk
version_added: "2.3"
requirements:
- lpass (command line utility)
- must have already logged into lastpass
short_description: fetch data from lastpass
description:
- use the lpass command line utility to fetch specific fields from lastpass
options:
_terms:
description: key from which you want to retrieve the field
required: True
field:
description: field to return from lastpass
default: 'password'
sŽ
- name: get 'custom_field' from lastpass entry 'entry-name'
debug:
msg: "{{ lookup('lastpass', 'entry-name', field='custom_field') }}"
s)
_raw:
description: secrets stored
( t Popent PIPE( t AnsibleError( t to_bytest to_text( t
LookupBaset LPassExceptionc B` s e Z RS( ( t __name__t
__module__( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyR - s t LPassc B` sV e Z d d „ Z e d „ ƒ Z e d „ ƒ Z d d d „ Z d d „ Z d „ Z RS( t lpassc C` s
| | _ d S( N( t _cli_path( t selft path( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyt __init__3 s c C` s | j S( N( R ( R ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyt cli_path6 s c C` s7 | j | j d ƒ d d d d ƒ\ } } | j d ƒ S( Nt logoutt stdins n
t expected_rci s' Are you sure you would like to log out?( t _runt _build_argst
startswith( R t outt err( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyt logged_in: s *i c C` sŒ t | j g | d t d t d t ƒ} | j t | ƒ ƒ \ } } | j ƒ } | | k rj t | ƒ ‚ n t | d d ƒt | d d ƒf S( Nt stdoutt stderrR t errorst surrogate_or_strict( R R R t communicateR t waitR R ( R t argsR R t pR R t rc( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyR ? s (c C` s3 | d k r g } n | g | } | d g 7} | S( Ns
--color=never( t None( R t commandR" ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyR G s
c C` sy | d
k r? | j | j d d j | ƒ | g ƒ ƒ \ } } n0 | j | j d d j | ƒ | g ƒ ƒ \ } } | j ƒ S( Nt usernamet passwordt urlt notest idt namet shows --{0}s --field={0}( R' R( R) R* s ids name( R R t formatt strip( R t keyt fieldR R ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyt get_fieldN s 30N(
R
R R t propertyR R R% R R R2 ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyR 1 s t LookupModulec B` s e Z d d „ Z RS( c K` sg t ƒ } | j s! t d ƒ ‚ n | j d d ƒ } g } x' | D] } | j | j | | ƒ ƒ q@ W| S( Ns8 Not logged into lastpass: please run 'lpass login' firstR1 R( ( R R R t gett appendR2 ( R t termst variablest kwargst lpR1 t valuest term( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyt runX s
N( R
R R% R= ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyR4 V s N( t
__future__R R R t typet
__metaclass__t
DOCUMENTATIONt EXAMPLESt RETURNt
subprocessR R t ansible.errorsR t ansible.module_utils._textR R t ansible.plugins.lookupR R t objectR R4 ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/lastpass.pyt s %