??????????????
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 m Z dd l mZmZdd lmZd ad„Zd„Zd„ZedkrÑeƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatustcoret supported_bysh --- module: synchronize version_added: "1.4" short_description: A wrapper around rsync to make common tasks in your playbooks quick and easy description: - C(synchronize) is a wrapper around rsync to make common tasks in your playbooks quick and easy. - It is run and originates on the local host where Ansible is being run. - Of course, you could just use the C(command) action to call rsync yourself, but you also have to add a fair number of boilerplate options and host facts. - This module is not intended to provide access to the full power of rsync, but does make the most common invocations easier to implement. You `still` may need to call rsync directly via C(command) or C(shell) depending on your use case. options: src: description: - Path on the source host that will be synchronized to the destination. - The path can be absolute or relative. type: str required: true dest: description: - Path on the destination host that will be synchronized from the source. - The path can be absolute or relative. type: str required: true dest_port: description: - Port number for ssh on the destination host. - Prior to Ansible 2.0, the ansible_ssh_port inventory var took precedence over this value. - This parameter defaults to the value of C(ansible_ssh_port) or C(ansible_port), the C(remote_port) config setting or the value from ssh client configuration if none of the former have been set. type: int version_added: "1.5" mode: description: - Specify the direction of the synchronization. - In push mode the localhost or delegate is the source. - In pull mode the remote host in context is the source. type: str choices: [ pull, push ] default: push archive: description: - Mirrors the rsync archive flag, enables recursive, links, perms, times, owner, group flags and -D. type: bool default: yes checksum: description: - Skip based on checksum, rather than mod-time & size; Note that that "archive" option is still enabled by default - the "checksum" option will not disable it. type: bool default: no version_added: "1.6" compress: description: - Compress file data during the transfer. - In most cases, leave this enabled unless it causes problems. type: bool default: yes version_added: "1.7" existing_only: description: - Skip creating new files on receiver. type: bool default: no version_added: "1.5" delete: description: - Delete files in C(dest) that don't exist (after transfer, not before) in the C(src) path. - This option requires C(recursive=yes). - This option ignores excluded files and behaves like the rsync opt --delete-excluded. type: bool default: no dirs: description: - Transfer directories without recursing. type: bool default: no recursive: description: - Recurse into directories. - This parameter defaults to the value of the archive option. type: bool links: description: - Copy symlinks as symlinks. - This parameter defaults to the value of the archive option. type: bool copy_links: description: - Copy symlinks as the item that they point to (the referent) is copied, rather than the symlink. type: bool default: no perms: description: - Preserve permissions. - This parameter defaults to the value of the archive option. type: bool times: description: - Preserve modification times. - This parameter defaults to the value of the archive option. type: bool owner: description: - Preserve owner (super user only). - This parameter defaults to the value of the archive option. type: bool group: description: - Preserve group. - This parameter defaults to the value of the archive option. type: bool rsync_path: description: - Specify the rsync command to run on the remote host. See C(--rsync-path) on the rsync man page. - To specify the rsync command to run on the local host, you need to set this your task var C(ansible_rsync_path). type: str rsync_timeout: description: - Specify a C(--timeout) for the rsync command in seconds. type: int default: 0 set_remote_user: description: - Put user@ for the remote paths. - If you have a custom ssh config to define the remote user for a host that does not match the inventory user, you should set this parameter to C(no). type: bool default: yes use_ssh_args: description: - Use the ssh_args specified in ansible.cfg. type: bool default: no version_added: "2.0" rsync_opts: description: - Specify additional rsync options by passing in an array. - Note that an empty string in C(rsync_opts) will end up transfer the current working directory. type: list default: version_added: "1.6" partial: description: - Tells rsync to keep the partial file which should make a subsequent transfer of the rest of the file much faster. type: bool default: no version_added: "2.0" verify_host: description: - Verify destination host key. type: bool default: no version_added: "2.0" private_key: description: - Specify the private key to use for SSH-based rsync connections (e.g. C(~/.ssh/id_rsa)). type: path version_added: "1.6" link_dest: description: - Add a destination to hard link against during the rsync. type: list default: version_added: "2.5" notes: - rsync must be installed on both the local and remote host. - For the C(synchronize) module, the "local host" is the host `the synchronize task originates on`, and the "destination host" is the host `synchronize is connecting to`. - The "local host" can be changed to a different host by using `delegate_to`. This enables copying between two remote hosts or entirely on one remote machine. - > The user and permissions for the synchronize `src` are those of the user running the Ansible task on the local host (or the remote_user for a delegate_to host when delegate_to is used). - The user and permissions for the synchronize `dest` are those of the `remote_user` on the destination host or the `become_user` if `become=yes` is active. - In Ansible 2.0 a bug in the synchronize module made become occur on the "local host". This was fixed in Ansible 2.0.1. - Currently, synchronize is limited to elevating permissions via passwordless sudo. This is because rsync itself is connecting to the remote machine and rsync doesn't give us a way to pass sudo credentials in. - Currently there are only a few connection types which support synchronize (ssh, paramiko, local, and docker) because a sync strategy has been determined for those connection types. Note that the connection for these must not need a password as rsync itself is making the connection and rsync does not provide us a way to pass a password to the connection. - Expect that dest=~/x will be ~/x even if using sudo. - Inspect the verbose output to validate the destination user/host/path are what was expected. - To exclude files and directories from being synchronized, you may add C(.rsync-filter) files to the source directory. - rsync daemon must be up and running with correct permission when using rsync protocol in source or destination path. - The C(synchronize) module forces `--delay-updates` to avoid leaving a destination in a broken in-between state if the underlying rsync process encounters an error. Those synchronizing large numbers of files that are willing to trade safety for performance should call rsync directly. - link_destination is subject to the same limitations as the underlying rsync daemon. Hard links are only preserved if the relative subtrees of the source and destination are the same. Attempts to hardlink into a directory that is a subdirectory of the source will be prevented. seealso: - module: copy - module: win_robocopy author: - Timothy Appnel (@tima) s] - name: Synchronization of src on the control machine to dest on the remote hosts synchronize: src: some/relative/path dest: /some/absolute/path - name: Synchronization using rsync protocol (push) synchronize: src: some/relative/path/ dest: rsync://somehost.com/path/ - name: Synchronization using rsync protocol (pull) synchronize: mode: pull src: rsync://somehost.com/path/ dest: /some/absolute/path/ - name: Synchronization using rsync protocol on delegate host (push) synchronize: src: /some/absolute/path/ dest: rsync://somehost.com/path/ delegate_to: delegate.host - name: Synchronization using rsync protocol on delegate host (pull) synchronize: mode: pull src: rsync://somehost.com/path/ dest: /some/absolute/path/ delegate_to: delegate.host - name: Synchronization without any --archive options enabled synchronize: src: some/relative/path dest: /some/absolute/path archive: no - name: Synchronization with --archive options enabled except for --recursive synchronize: src: some/relative/path dest: /some/absolute/path recursive: no - name: Synchronization with --archive options enabled except for --times, with --checksum option enabled synchronize: src: some/relative/path dest: /some/absolute/path checksum: yes times: no - name: Synchronization without --archive options enabled except use --links synchronize: src: some/relative/path dest: /some/absolute/path archive: no links: yes - name: Synchronization of two paths both on the control machine synchronize: src: some/relative/path dest: /some/absolute/path delegate_to: localhost - name: Synchronization of src on the inventory host to the dest on the localhost in pull mode synchronize: mode: pull src: some/relative/path dest: /some/absolute/path - name: Synchronization of src on delegate host to dest on the current inventory host. synchronize: src: /first/absolute/path dest: /second/absolute/path delegate_to: delegate.host - name: Synchronize two directories on one remote host. synchronize: src: /first/absolute/path dest: /second/absolute/path delegate_to: "{{ inventory_hostname }}" - name: Synchronize and delete files in dest on the remote host that are not found in src of localhost. synchronize: src: some/relative/path dest: /some/absolute/path delete: yes recursive: yes # This specific command is granted su privileges on the destination - name: Synchronize using an alternate rsync command synchronize: src: some/relative/path dest: /some/absolute/path rsync_path: su -c rsync # Example .rsync-filter file in the source directory # - var # exclude any path whose last part is 'var' # - /var # exclude any path starting with 'var' starting at the source directory # + /var/conf # include /var/conf even though it was previously excluded - name: Synchronize passing in extra rsync options synchronize: src: /tmp/helloworld dest: /var/www/helloworld rsync_opts: - "--no-motd" - "--exclude=.git" # Hardlink files if they didn't change - name: Use hardlinks when synchronizing filesystems synchronize: src: /tmp/path_a/foo.txt dest: /tmp/path_b/foo.txt link_dest: /tmp/path_a/ # Specify the rsync binary to use on remote host and on local host - hosts: groupofhosts vars: ansible_rsync_path: /usr/gnu/bin/rsync tasks: - name: copy /tmp/localpath/ to remote location /tmp/remotepath synchronize: src: /tmp/localpath/ dest: /tmp/remotepath rsync_path: /usr/gnu/bin/rsync N(t AnsibleModule(tto_bytest to_native(t shlex_quotecC`sÍts¢tjjddƒ}y|jddƒ\a}WnVtk rtjjddƒ}y|jddƒ\a}Wqtk r‹qXnXts¢t‚q¢n|jdƒrÉ|j dtdƒ}n|S(Nt SSH_CLIENTitSSH_CONNECTIONs localhost:t localhost( t client_addrtostenvirontgettNonetsplittAttributeErrort ValueErrort startswithtreplace(tpathtssh_env_stringt_((sE/usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.pytsubstitute_controller`s   cC`sB|jdƒs|jdƒr"tSd|ks:d|kr>tStS(Nsrsync://t:(RtFalsetTrue(tsourcetdest((sE/usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.pyt is_rsh_neededts c,B`sý tdtdtdddtƒdtdddtƒdtddƒd tdd d tƒd tdd ƒdtddƒdtdd d dƒdtdddtƒdtdd d tƒdtdd d tƒdtdd d tƒdtdd d tƒdtdd d tƒdtdd d tƒdtdd ƒdtdd ƒdtdd d tƒdtdd ƒdtdd ƒdtdd ƒdtdd ƒd tdd d tƒd!tddd d"ƒd#tdd$d gƒd%tddƒd&tdd d tƒd'tdd d tƒd(tddd d)d*d+d)gƒd,tdd$ƒƒd-tƒ}|jdr¡y*t|jdƒ}t|jdƒ}Wq»tk r|jd.d/ƒq»Xn|jd}|jd}|jd}|jd }|jd }|jd}|jjddƒ}|jjdƒ‰|jjd!d!ƒ}|jd} |jd} |jd} |jd} |jd} |jd&}|jd}|jd}|jd}|jd}|jd}|jd}|jd}|jd#}|jd%}|jd'}|jd,}d0|kr,|j |dtƒ}n|d1d2g}d‰ˆr²y|j d3gƒWn!t k r~|jd.d4ƒnXt jƒ‰d3d5tˆd"d6d7ƒg|}n| rÈ|jd8ƒn|râ|jd9|ƒn|jrû|jd:ƒn|r|jd;ƒn| r'|jd<ƒn| r=|jd=ƒn|rS|jd>ƒn| r|jd?ƒ|tkr‚|jd@ƒn|tkrž|jdAƒn|tkrº|jdBƒn|tkrÖ|jdCƒn|tkrò|jdDƒn|tkr¹|jdEƒq¹n¨|tkr-|jdFƒn|tkrI|jdGƒn|tkre|jdHƒn|tkr|jdIƒn|tkr|jdJƒn|tkr¹|jdKƒn| rÏ|jdLƒn|jdMƒr|jdMƒr|jd.dNdOdPƒnt||ƒrt}x$|D]}dQ|kr"t}Pq"q"W|s|j dRdtƒdSdTg}|dk rˆ|jdU|gƒn|dk r®|jdVdW|gƒn|sÐ|jdVdXdVdYgƒndZjd[„|Dƒƒ}|r|d\|7}n|jd]|ƒqn|r1|jd^|ƒn|rcd_|krS|jd`ƒn|j|ƒn|ry|jdaƒn|r, |jdbƒ|jdcƒx|D]…}t jjt jj|ƒƒ} t jjt jj|ƒƒ}!|!j| ƒd"kr |jd.dd|!|fƒn|jde| ƒq Wndf}"|jdg|"dhƒdi|krh t jj|ƒ}ndi|kr‰ t jj|ƒ}n|j|ƒ|j|ƒdZj|ƒ}#ˆrñ ‡‡fdj†}$|j |dkˆdl|$ƒ\}%}&}'n|j |ƒ\}%}&}'|%r+ |jd.|'dO|%dm|#ƒS|rD |"dn|&k}(n |"|&k}(|&j|"d_ƒ})|)jdoƒ}*xd_|*kr |*jd_ƒqt W|jrÕ i|)dp6}+|j dq|(d.|)dO|%dm|#dr|*ds|+ƒS|j dq|(d.|)dO|%dm|#dr|*ƒS(tNt argument_spectsrcttypetstrtrequiredR!t dest_porttinttdeletetbooltdefaultt private_keyRt rsync_patht_local_rsync_pathtrsynct_local_rsync_passwordtno_logt_substitute_controllertarchivetchecksumtcompresst existing_onlytdirst recursivetlinkst copy_linkstpermsttimestownertgrouptset_remote_usert rsync_timeoutit rsync_optstlisttssh_argstpartialt verify_hosttmodetpushtchoicestpullt link_desttsupports_check_modetmsgs<Could not determine controller hostname for rsync to send tot/s--delay-updatess-FtsshpasssLto use rsync connection with passwords, you must install the sshpass programs-dterrorstsurrogate_or_stricts --compresss --timeout=%ss --dry-runs--delete-afters --existings --checksums --copy-linkss --archives--no-recursives --no-linkss --no-permss --no-timess --no-owners --no-groups --recursives--linkss--permss--timess--owners--groups--dirssrsync://s&either src or dest must be a localhosttrcis--rshtsshs-Stnones-is-osPort=%ssStrictHostKeyChecking=nosUserKnownHostsFile=/dev/nullt cs`s|]}t|ƒVqdS(N(R (t.0targ((sE/usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.pys ss %ss--rsh=%ss--rsync-path=%stsThe empty string is present in rsync_opts which will cause rsync to transfer the current working directory. If this is intended, use "." instead to get rid of this warning. If this is unintended, check for problems in your playbook leading to empty string in rsync_opts.s --partials-Hs-vvsNHardlinking into a subdirectory of the source would cause recursion. %s and %ss--link-dest=%ss <>s --out-format=s%i %n%Lt@c`swtjˆdƒy"tjˆdtˆƒdƒWn=tk rr}|jtjksi|jƒdkrs‚qsnXdS(Niis ( RtclosetwriteR tOSErrorterrnotEPIPEtpollR(tproctexc(t _sshpass_pipetrsync_password(sE/usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.pyt_write_password_to_pipeCs "$tpass_fdstbefore_communicate_callbacktcmdt.s tpreparedtchangedt stdout_linestdiff(!RtdictRRtparamsRRt fail_jsonRt get_bin_pathRt run_commandR\RtpipeR tappendt check_modeRR"textendtjointwarnRtabspatht expandusertdirnametfindRRtremovet_difft exit_json(,tmoduleR R!R(R*R-R.R0RAR4R5R6R7R8RER9R:R;R<R=R>R?RBRDRFRKRgthas_rsht rsync_opttssh_cmdt ssh_cmd_strtxt link_pathtdestination_pathtchanged_markertcmdstrRdRRtoutterrRjt out_cleant out_linesRl((RbRcsE/usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.pytmain|st!                               '                               t__main__(t __future__RRRR%t __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESRR]tansible.module_utils.basicRtansible.module_utils._textR R tansible.module_utils.six.movesR RRRR"Rt__name__(((sE/usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.pyts"   Æ     í