??????????????
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 d l m Z d d l m
Z
d d l m Z d d l
m Z d d l m Z d d l m Z m Z d d l m Z d d
l m Z d d l m Z d d l m Z m Z d
e f d „ ƒ YZ d S( i ( t absolute_importt divisiont print_functionsØ
---
author: Ansible Networking Team
connection: httpapi
short_description: Use httpapi to run command on network appliances
description:
- This connection plugin provides a connection to remote devices over a
HTTP(S)-based api.
version_added: "2.6"
options:
host:
description:
- Specifies the remote device FQDN or IP address to establish the HTTP(S)
connection to.
default: inventory_hostname
vars:
- name: ansible_host
port:
type: int
description:
- Specifies the port on the remote device that listens for connections
when establishing the HTTP(S) connection.
- When unspecified, will pick 80 or 443 based on the value of use_ssl.
ini:
- section: defaults
key: remote_port
env:
- name: ANSIBLE_REMOTE_PORT
vars:
- name: ansible_httpapi_port
network_os:
description:
- Configures the device platform network operating system. This value is
used to load the correct httpapi plugin to communicate with the remote
device
vars:
- name: ansible_network_os
remote_user:
description:
- The username used to authenticate to the remote device when the API
connection is first established. If the remote_user is not specified,
the connection will use the username of the logged in user.
- Can be configured from the CLI via the C(--user) or C(-u) options.
ini:
- section: defaults
key: remote_user
env:
- name: ANSIBLE_REMOTE_USER
vars:
- name: ansible_user
password:
description:
- Configures the user password used to authenticate to the remote device
when needed for the device API.
vars:
- name: ansible_password
- name: ansible_httpapi_pass
- name: ansible_httpapi_password
use_ssl:
type: boolean
description:
- Whether to connect using SSL (HTTPS) or not (HTTP).
default: False
vars:
- name: ansible_httpapi_use_ssl
validate_certs:
type: boolean
version_added: '2.7'
description:
- Whether to validate SSL certificates
default: True
vars:
- name: ansible_httpapi_validate_certs
use_proxy:
type: boolean
version_added: "2.9"
description:
- Whether to use https_proxy for requests.
default: True
vars:
- name: ansible_httpapi_use_proxy
timeout:
type: int
description:
- Sets the connection time, in seconds, for communicating with the
remote device. This timeout is used as the default timeout value for
commands when issuing a command to the network CLI. If the command
does not return in timeout seconds, an error is generated.
default: 120
become:
type: boolean
description:
- The become option will instruct the CLI session to attempt privilege
escalation on platforms that support it. Normally this means
transitioning from user mode to C(enable) mode in the CLI session.
If become is set to True and the remote device does not support
privilege escalation or the privilege has already been elevated, then
this option is silently ignored.
- Can be configured from the CLI via the C(--become) or C(-b) options.
default: False
ini:
- section: privilege_escalation
key: become
env:
- name: ANSIBLE_BECOME
vars:
- name: ansible_become
become_method:
description:
- This option allows the become method to be specified in for handling
privilege escalation. Typically the become_method value is set to
C(enable) but could be defined as other values.
default: sudo
ini:
- section: privilege_escalation
key: become_method
env:
- name: ANSIBLE_BECOME_METHOD
vars:
- name: ansible_become_method
persistent_connect_timeout:
type: int
description:
- Configures, in seconds, the amount of time to wait when trying to
initially establish a persistent connection. If this value expires
before the connection to the remote device is completed, the connection
will fail.
default: 30
ini:
- section: persistent_connection
key: connect_timeout
env:
- name: ANSIBLE_PERSISTENT_CONNECT_TIMEOUT
vars:
- name: ansible_connect_timeout
persistent_command_timeout:
type: int
description:
- Configures, in seconds, the amount of time to wait for a command to
return from the remote device. If this timer is exceeded before the
command returns, the connection plugin will raise an exception and
close.
default: 30
ini:
- section: persistent_connection
key: command_timeout
env:
- name: ANSIBLE_PERSISTENT_COMMAND_TIMEOUT
vars:
- name: ansible_command_timeout
persistent_log_messages:
type: boolean
description:
- This flag will enable logging the command executed and response received from
target device in the ansible log file. For this option to work 'log_path' ansible
configuration option is required to be set to a file path with write access.
- Be sure to fully understand the security implications of enabling this
option as it could create a security vulnerability by logging sensitive information in log file.
default: False
ini:
- section: persistent_connection
key: log_messages
env:
- name: ANSIBLE_PERSISTENT_LOG_MESSAGES
vars:
- name: ansible_persistent_log_messages
( t BytesIO( t AnsibleConnectionFailure( t to_bytes( t PY3( t cPickle( t HTTPErrort URLError( t open_url( t PlayContext( t httpapi_loader( t NetworkConnectionBaset ensure_connectt
Connectionc B` sM e Z d Z d Z e Z d „ Z d „ Z d „ Z d „ Z e
d „ ƒ Z RS( s Network API connectiont httpapic O` sî t t | ƒ j | | | | Ž d | _ d | _ | j rÇ t j | j | ƒ | _ | j r± i d d 6| j j
d 6| j d 6| _ | j d d | j j
| j j
| j f ƒ qÓ t d | j ƒ ‚ n t d ƒ ‚ | j d d
| j ƒ d S( NR t typet namet objt vvvvs3 loaded API plugin %s from path %s for network_os %ss+ unable to load API plugin for network_os %sss Unable to automatically determine host network os. Please manually configure ansible_network_os value for this hostt logs network_os is set to %s( t superR t __init__t Nonet _urlt _autht _network_osR t getR t
_load_namet _sub_plugint
queue_messaget _original_pathR ( t selft play_contextt new_stdint argst kwargs( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/connection/httpapi.pyR Â s '# c C` sÁ t | ƒ } t r* t j | d d ƒ} n t j | ƒ } t ƒ } | j | ƒ | j d d ƒ | j j | j Ar´ | j | ƒ | j t
k r¡ | j d d ƒ q´ | j d d ƒ n | | _ d S( s7 Updates the play context information for the connectiont encodingt bytesR s$ updating play_context for connections authorizing connections deauthorizing connectionN( R R R t loadsR t deserializeR t
_play_contextt becomet
set_becomet True( R! t pc_dataR" ( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/connection/httpapi.pyt update_play_contextÙ s
c C` sÛ | j s× | j d ƒ r d n d } | j d ƒ } | j d ƒ pW | d k rT d n d } d | | | f | _ | j d d
| j j | j f ƒ | j j | j ƒ t | _ | j j
| j d ƒ | j d ƒ ƒ n d S(
Nt use_sslt httpst httpt hostt porti» iP s
%s://%s:%st vvvs+ ESTABLISH HTTP(S) CONNECTFOR USER: %s TO %st remote_usert password( t connectedt
get_optionR R R* R6 R R, R- t
_connectedt login( R! t protocolR3 R4 ( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/connection/httpapi.pyt _connectí s ' c C` s= | j r&