--- # COPY MODULE EXAMPLE
- hosts: apacheweb
user: test
sudo: yes
connection: ssh
gather_facts: no
tasks:
- name: Copy from the files directory test file
action: copy src=files/test2.txt dest=/home/test/test2.txt mode=0644 owner=test group=test backup=yes
一个标准合格的Copy模块式应该包含Backup
功能的 因为很实用
网友评论