Closed m7x closed 4 years ago
Hi,
Thanks a lot for reporting. While I look into it and merge it, can you please try the patch proposed in #23 and let me know if it fixes the issue?
Thank you Christophe
FYI: On latest master (and from inside the virtual env), I have no issue with the playbook:
$ cd ansible
$ source venv/bin/activate
$ ansible-playbook domain-controllers.yml --skip-tags=base -v
...
TASK [domain-controller : Ensure domain groups exist] *******************************************************************************************************************************************************
ok: [domain-controller_33f5] => (item={'dn': 'CN=Hunters,CN=Users', 'members': ['christophe', 'dany']}) => {"ansible_loop_var": "item", "canonical_name": "hunter.lab/Users/Hunters", "category": "Security",
"changed": false, "created": false, "description": null, "display_name": null, "distinguished_name": "CN=Hunters,CN=Users,DC=hunter,DC=lab", "group_scope": "Global", "guid": "bc4a8859-9155-4621-8aea-aef39
81c8972", "item": {"dn": "CN=Hunters,CN=Users", "members": ["christophe", "dany"]}, "managed_by": null, "name": "Hunters", "protected_from_accidental_deletion": false, "sid": "S-1-5-21-130281680-705130643-
2804825206-1103"}
Same when the playbook is initially run by Terraform on terraform apply
:
$ terraform apply
...
null_resource.provision_rest_of_dc_after_creation (local-exec): TASK [domain-controller : Ensure domain groups exist] **************************
null_resource.provision_rest_of_dc_after_creation (local-exec): changed: [domain-controller_33f5] => (item={'dn': 'CN=Hunters,CN=Users', 'members': ['christophe', 'dany']}) => {"ansible_loop_var": "item",
"canonical_name": "hunter.lab/Users/Hunters", "category": "Security", "changed": true, "created": true, "description": null, "display_name": null, "distinguished_name": "CN=Hunters,CN=Users,DC=hunter,DC=la
b", "group_scope": "Global", "guid": "bc4a8859-9155-4621-8aea-aef3981c8972", "item": {"dn": "CN=Hunters,CN=Users", "members": ["christophe", "dany"]}, "managed_by": null, "name": "Hunters", "protected_from
_accidental_deletion": false, "sid": "S-1-5-21-130281680-705130643-2804825206-1103"}
To rule out a potential issue due to an older Ansible version, can you confirm that you have this issue while in the venv? (which implies you have ansible 2.9.9)
Correct. I forgot to mention that I couldn't use az login
for my setup so I changed to auth_source: env
in the inventory_azure_rm.yml
.
> ansible --version
ansible 2.9.9
Thanks for the feedback! Will get it merged ASAP.
Hey thanks for your project. I am getting this error and I could not figured out how to fix it:
Note the double commas in
CN=Users,,DC=hunter
.My
domain.yml
:I am sure the problem is in here:
Any suggestions?