Hello,

I'm starting with Ansible. I would like to know in a playbook how to test 
if the windows computer is in version FR or US. Following the test, I would 
add account users to the local "Administrators" or "Administrateurs" group.

By default:

- name: Add a user
   Hosts: windows_tst
   Gather_facts: false
   tasks:
     - name: Add User
       win_user:
         Name: admintest
         Password: "mypassword"
         State: present
         Groups: Administrators

But if I am on a computer in French, the group administrors does not exist.

How I can solve this problem.

Thank you in advance for your assistance.
Regards

-- 
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/a041e1ed-74cc-4fcc-9a2e-6947cb2783d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to