Hi,
I am testing out ansible win_dsc module that Trond wrote. Everything worked
great except when I start using the xActiveDirectory modules. I used
Trond's ansible module generator to get the modules. I didn't get any error
and I see all the modules exported. When I run the play book I get the
error "Property _ansible_selinux_special_fs in resource xADDomain is not a
valid property." I searched around the web but couldn’t really find much
about this error. Please help!
fatal: [10.255.10.20]: FAILED! => {"Attributes": [
"DomainAdministratorCredential_password",
"DomainAdministratorCredential_username", "DomainName", "DomainNetbiosName",
"SafemodeAdministratorPassword_password",
"SafemodeAdministratorPassword_username", "_ansible_check_mode",
"_ansible_debug", "_ansible_diff", "_ansible_no_log",
"_ansible_selinux_special_fs", "_ansible_syslog_facility",
"_ansible_verbosity", "_ansible_version"],
"DomainAdministratorCredential_password": "vagrant",
"DomainAdministratorCredential_username": "vagrant", "DomainName":
"dc01.testrealm.com", "DomainNetbiosName": "dc01",
"SafemodeAdministratorPassword_password": "vagrant",
"SafemodeAdministratorPassword_username": "vagrant", "changed": false,
"failed": true, "invocation": {"module_name": "win_ad_xaddomain"}, "msg":
"Property
_ansible_selinux_special_fs in resource xADDomain is not a valid property",
"resource_name": "xADDomain"}
.
And here is my playbook
---
- hosts: ps_main
gather_facts: false
tasks:
- name: Make sure the LCM refresh mode is disabled
win_lcm5:
refresh_mode: "Disabled"
tags:
- Config
- name: Download required Packages
win_oneget:
name: "xActiveDirectory"
tags:
- Oneget
- name: Install ADDS and RSAT
win_feature:
name: "AD-Domain-Services,RSAT-AD-Tools"
tags:
- WindowsFeature
- name: Init Domain
win_ad_xaddomain:
DomainName: "dc01.testrealm.com"
DomainNetbiosName: "dc01"
DomainAdministratorCredential_username: "vagrant"
DomainAdministratorCredential_password: "vagrant"
SafemodeAdministratorPassword_username: "vagrant"
SafemodeAdministratorPassword_password: "vagrant"
tags:
- DomainInit
- name: Wait for domain
win_ad_xwaitfordomain:
DomainUserCredential_username: "vagrant"
DomainUserCredential_password: "vagrant"
RetryCount: 20
RetryIntervalSec: 30
- name: Add Users
win_xaduser:
DomainName: "dc01.testrealm.com"
DomainAdministratorCredential_username: "vagrant"
DomainAdministratorCredential_password: "vagrant"
UserName: "ichiban"
Password_username: "ichiban"
Password_password: "ichiP@ssw0rd"
tags:
- AddUsersEnter
Thanks!!!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5302cf9d-628f-421f-82f8-5369975576e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.