copy_file_to_hosts.yaml 328 B

12345678910111213
  1. ---
  2. - name: Copy a specified file to hosts
  3. hosts: "***CONTENTS REDACTED***.edu"
  4. gather_facts: no
  5. become: true
  6. tasks:
  7. - name: perform copy
  8. copy:
  9. src: ~/install_packages/users.fact
  10. dest: /etc/ansible/facts.d/
  11. owner: Ansible
  12. group: wheel
  13. mode: 0755