copy_file.yml 316 B

12345678910111213
  1. - name: Using the copy module
  2. hosts: all
  3. remote_user: root
  4. tasks:
  5. - name: Copy a file to managed hosts and set attributes
  6. copy:
  7. src: files/users.txt
  8. dest: /home/devops/users.txt
  9. owner: devops
  10. group: devops
  11. mode: u+rw,g-wx,o-rwx
  12. setype: samba_share_t