improve idempotency with changed_when/failed_when, args creates

This commit is contained in:
juju4
2020-11-07 08:43:09 -05:00
parent 3fb36effed
commit bdeda04692
4 changed files with 29 additions and 1 deletions

View File

@@ -21,6 +21,8 @@
- name: Copy scripts to c:\vagrant
win_shell: Copy-Item -Recurse c:\DetectionLab\Vagrant c:\vagrant
args:
creates: c:\vagrant\Vagrantfile
- name: Create an Administrator user
win_user:
@@ -28,7 +30,8 @@
password: Vagrant123
state: present
groups:
- Users,Administrators
- Users
- Administrators
password_never_expires: yes
- name: Create the Domain