??????????????
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;ddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z dd l Z dd l Z dd l Z dd l Z dd lZ dd lZdd lZdd lmZdd lmZdd lmZmZd„Zd„Zd„Zd„Zd„Zd„Zd„Zedkr7eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysŸ --- module: known_hosts short_description: Add or remove a host from the C(known_hosts) file description: - The C(known_hosts) module lets you add or remove a host keys from the C(known_hosts) file. - Starting at Ansible 2.2, multiple entries per host are allowed, but only one for each key type supported by ssh. This is useful if you're going to want to use the M(git) module over ssh, for example. - If you have a very large number of host keys to manage, you will find the M(template) module more useful. version_added: "1.9" options: name: aliases: [ 'host' ] description: - The host to add or remove (must match a host specified in key). It will be converted to lowercase so that ssh-keygen can find it. - Must match with or present in key attribute. required: true key: description: - The SSH public host key, as a string (required if state=present, optional when state=absent, in which case all keys for the host are removed). The key must be in the right format for ssh (see sshd(8), section "SSH_KNOWN_HOSTS FILE FORMAT"). Specifically, the key should not match the format that is found in an SSH pubkey file, but should rather have the hostname prepended to a line that includes the pubkey, the same way that it would appear in the known_hosts file. The value prepended to the line must also match the value of the name parameter. Should be of format ` ssh-rsa ` path: description: - The known_hosts file to edit default: "(homedir)+/.ssh/known_hosts" hash_host: description: - Hash the hostname in the known_hosts file type: bool default: 'no' version_added: "2.3" state: description: - I(present) to add the host key, I(absent) to remove it. choices: [ "present", "absent" ] default: present requirements: [ ] author: "Matthew Vernon (@mcv21)" sº - name: tell the host about our servers it might want to ssh to known_hosts: path: /etc/ssh/ssh_known_hosts name: foo.com.invalid key: "{{ lookup('file', 'pubkeys/foo.com.invalid') }}" - name: Another way to call known_hosts known_hosts: name: host1.example.com # or 10.9.8.77 key: host1.example.com,10.9.8.77 ssh-rsa ASDeararAIUHI324324 # some key gibberish path: /etc/ssh/ssh_known_hosts state: present N(t AnsibleModule(tFileLock(tto_bytest to_nativecC`s2|djƒ}|jddƒ}|jdƒ}|jdƒ}|jdƒ}|jdtƒ}| r‡|dkr‡|jdd ƒn|r¥|r¥t||ƒ}n|rÈ|jd ƒ rÈ|d 7}nt||||ƒt |||||ƒ\}} } t || | ||ƒ|d <|j rP|j d | p?|d k|kd |d ƒn|r˜| r˜|dkr˜|j |d|d|gdtƒt|d (found,replace_or_add,found_line) Looks up host and keytype in the known_hosts file path; if it's there, looks to see if one of those entries matches key. Returns: found (Boolean): is host found in path? replace_or_add (Boolean): is the key in path different to that supplied by user? found_line (int or None): the line where a key of the same type was found if found=False, then replace is always False. sshkeygen is the path to ssh-keygen, found earlier with get_bin_path s-Fs-fRREiiRs2ssh-keygen failed (rc=%d, stdout='%s',stderr='%s')s t#sfound: line (\d+)s:failed to parse output of ssh-keygen for line number: '%s'R:is|1|ttypeN(R0RtexistsR2RR(R Rtsplittnormalize_known_hosts_keyR3tintRFRGtgroupt IndexError(R8R:R RR;RIRJRKRLtlinestnew_keytlnumtlR>t found_key((sF/usr/lib/python2.7/site-packages/ansible/modules/system/known_hosts.pyR$Ôs8  0      %  (  cC`s¤tjdƒ}tj|t|ƒtjƒjƒ}|jƒj ƒ}|dddkr_dnd}dt t j |ƒƒt t j |ƒƒf||R=RR RR?R@RU((sF/usr/lib/python2.7/site-packages/ansible/modules/system/known_hosts.pyR%-s&  @cC`s¹tdtdtdtddddgƒdtdtddƒd td d dd ƒd tdtdd d tƒdtd ddddgƒƒdtƒ}t||jƒ}|j|dS(Nt argument_specR trequiredRNR-taliasesR:R Rtdefaults~/.ssh/known_hostsRtboolRRtchoicesRtsupports_check_mode(RRkRR2RDR9R'(R8tresults((sF/usr/lib/python2.7/site-packages/ansible/modules/system/known_hosts.pytmainEs t__main__( t __future__RRRRNt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESRcR+R_R]R0tos.pathRFR.tansible.module_utils.basicRt ansible.module_utils.common.fileR tansible.module_utils._textR R RDR#R$R!RQR%R~t__name__(((sF/usr/lib/python2.7/site-packages/ansible/modules/system/known_hosts.pyts4   /         J % 6