copy_users.fact_to_hosts.yaml 323 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: root
  12. group: root
  13. mode: "755"