Files
Borealis-Github-Replica/Assemblies/Ansible_Playbooks/Examples/Write Canary to C Drive Root.yml

12 lines
280 B
YAML

---
- name: Create Canary.txt on local Windows machine
hosts: localhost
connection: local
gather_facts: no
tasks:
- name: Write Canary.txt to C:\
ansible.windows.win_copy:
content: "This is a canary file created by Ansible."
dest: C:\Canary.txt