On Sunday, September 17, 2017 at 12:08:15 PM UTC+3, Jean-Yves LENHOF wrote:
>
>
>
> Le 17/09/2017 à 10:30, misha a écrit :
>
> Hello to everyone! 
>
> I try executing ad-hoc command such as:
> ansible windows -m win_user_right -a 'name=SeDenyRemoteInteractiveLogonRight 
> users=MY_USER action=set'
>
> but I get this error:
> *The module win_user_right was not found in configured module paths. 
> Additionally, core modules are missing. If this is a checkout, run 'git 
> pull --rebase' to correct this problem.*
> I have to mention that I execute successfully the "win_user" module prior 
> to this ( which is an ansible team maintained module )
> ansible windows -m win_user -a 'name=MY_USER password=MY_PASS 
> state=present groups=Administrators'
>
> What is the issue exactly here? To me it looks like the *win_user_right* 
> module is missing, any clues ?
>
>
> Hi,
>
> A guess, you're using a packaged version of ansible which version is < 2.4 
> (2.4 is in release candidate for now, see: 
> https://github.com/ansible/ansible/releases)
>
> When you read documentation, win_user_right module is in 2.4 version 
> http://docs.ansible.com/ansible/devel/win_user_right_module.html
>
> The module win_user,as written in documentation, is in ansible since 
> version 1.7, so since a long time...
> http://docs.ansible.com/ansible/devel/win_user_module.html
>
> So, the first thing to verify is your version of ansible and/or how did 
> you in install it...
>
> Regards,
>
> JYL
>


Poor me, I assumed modules are there, once I install via Yum. Thank you for 
big help!

So i solved this by deploying/building from source.

yum install asciidoc

yum install python2-devel

git clone git://github.com/ansible/ansible.git
cd /etc/ansible

make rpm

yum install python2-cryptography

sudo rpm -Uvh /etc/ansible/rpm-build/ansible-*.noarch.rpm

-- 
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/300b64a1-ce25-4673-bdc4-03b3c5c7354c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to