Ansible Playbook to create or remove windows directory
---
- hosts: win
tasks:
- name: create directory
win_file:
path: 'c:\ry\ansibletest'
state: directory
---
- hosts: win
tasks:
- name: create directory
win_file:
path: 'c:\ry\ansibletest'
state: absent
No comments:
Post a Comment