Turns out I was using the devel version of ansbile and that was causing the 
error. Now I am on Ansible 2.0.2 and get a new error.

TASK [Init Domain] 
*************************************************************
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_verbosity"], 
"DomainAdministratorCredential_password": "vagrant", 
"DomainAdministratorCredential_username": "vagrant", "DomainName": 
"dc01.testrealm.com", "DomainNetbiosName": "dc01", 
"SafemodeAdministratorPassword_password": "vagrant", 
"SafemodeAdministratorPassword_username": "vagrant", "changed": false, 
"failed": true, "msg": "Property _ansible_debug in resource xADDomain is 
not a valid property", "resource_name": "xADDomain"}


Could it be that ansible is passing these attributes into the powershell 
modules but ps isn't doing accepting it?

Thanks
Phyo

On Wednesday, May 18, 2016 at 1:59:48 PM UTC-7, Phyo Shwe wrote:
>
> 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/e5107bcc-456e-49bf-8c2c-f70f8f6bd664%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to