Last active
September 20, 2016 14:12
-
-
Save adbertram/8bf18aef48ccfe898a4fb1b9140f7d5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
play | |
----- | |
- name: Folder ACLs | |
win_acl: | |
path: "{{ item.value.path }}" | |
user: "{{ item.value.access.user }}" | |
rights: "{{ item.value.access.rights }}" | |
propogation: "{{ item.value.access.propogation }}" | |
inherit: "{{ item.value.access.inherit }}" | |
with_dict: "{{ folders|default({}) }}" | |
when: item.value.access is defined ## I'd like to only run win_acl on folders that have an access property | |
vars | |
----- | |
folders: | |
webapps: | |
path: C:\\inetpub\\Logs\\WebApps | |
access: | |
user: IIS_USRS | |
rights: Modify | |
propagation: None | |
inherit: 'ContainerInherit, ObjectInherit' | |
sites: | |
path: C:\\inetpub\\Sites | |
GHI: | |
path: C:\\inetpub\\Sites\\GHI | |
Error: | |
fatal: [wsvabertram01.genomichealth.com]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, | |
which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'propogation'\n\nThe | |
error appears to have been in '/home/vagrant/ansibleinventory/roles/webserver/tasks/main.yml': line 65, column 3, but may\nbe | |
elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Folder ACLs\n ^ here\n"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment