Re: [ansible-project] Get IP address, replace first three octets

2018-10-20 Thread LJMedina
Hello!
Unfortunately, we are using version 2.4, don't think upgrading is an option
(at least at this point) any other ideas ?

On Sat, Oct 20, 2018 at 2:52 PM Dick Visser  wrote:

> I don't know the hponcfg module, but from
>
> https://docs.ansible.com/ansible/latest/modules/hponcfg_module.html#examples
> it looks like you have to first copy an XML fragment with some
> specific configuration code, and then use that with the hponcfg
> module.
> If you are able to use ansible 2.7, then you can use this expression
> for the new ILO IP in your XML fragment:
>
> {{ ansible_default_ipv4.address  | ipmath(2**24 + 2**16 + 2**8) }}"
>
> This basically increases the first 3 octets by 1, by adding 2^24,
> 2^16, and 2^8 to them.
> If you don't like your co-workers, use:
>
> {{ ansible_default_ipv4.address  | ipmath(16843008) }}"
>
> Dick
>
>
> On Sat, 20 Oct 2018 at 17:38, LJ Medina  wrote:
> >
> > Hello,
> > I'm trying to assign ILO IP addresses to a range of systems, using a
> different subnet than their host IP, just matching the fourth octet.  For
> example, if their IP would be 10.10.10.10, I want their ILO IP to be
> 11.11.11.10.( Plan is to use "hponcfg" module to configure the host's ILO
> after I obtain this address)
> > What is the best way to achieve this with ansible?
> >
> > --
> > 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 ansible-project+unsubscr...@googlegroups.com.
> > To post to this group, send email to ansible-project@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/53e0e0d5-6ec2-408a-9af9-8dce2384caba%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/ubGw-T7WwJI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwN5kHWxaDzV0ri%2Bf6iBQw8QSh1UWDMGKxHpew06cvDghg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJThwu5MXSdukaYqqY0U%3DB4YicXttj8c1EwSpniWRkK%3D%2B7m9WQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] How to convert a dictionary to a list with key=value elements or to a string with key=value elements?

2018-10-20 Thread Dmitriy Panteleyev
That is what I ended up doing, but was curious if there is a 'filter' way.


On Saturday, October 20, 2018 at 11:01:32 AM UTC-6, Kai Stian Olstad wrote:
>
> On Saturday, 20 October 2018 17:59:07 CEST Dmitriy Panteleyev wrote: 
> > Is there a way to modify this so that the item to the right of the equal 
> > sign was quoted? 
> > 
> > So...  one="wan", two="too", three="tree" 
>
> You can always use Jinja template 
>
>   - debug: msg="{% for k, v in test.iteritems() %}{{ k }}="{{ v }}"{% if 
> not loop.last %}, {% endif %}{% endfor %}" 
>
> -- 
> Kai Stian Olstad 
>
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/eb879aeb-ef35-4bad-8165-98aebae764de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible mail module failing at sending mail

2018-10-20 Thread Sathya Narayanan
Hi Umberto,

Just a quick thought, if you have any special character in your password,
try searching them.

Some times -$ symbols are not valid when you pass that as a vatiable.

I am not sure if that can fix your problem, but just a suggestion.

On Fri, 19 Oct 2018, 8:25 pm Umberto Manferdini, <
umberto.manferd...@gmail.com> wrote:

> Hello,
>
> Trying to use the mail module to send emails as last task of my playbook
>
>
>
> It fails saying
>
>
> fatal: [r1 -> localhost]: FAILED! => {"changed": false, "msg":
> "Authentication to smtp.mail.yahoo.com:25 failed, please check your
> username and/or password", "rc": 1}
>
> even if i'm totally sure credentials are right
>
>
>
> As I imagine, underneath, it relies on on the smtplib python module , I
> tried to do it manually
>
>
>
> I get this
>
>
>
> >>> server = smtplib.SMTP('smtp.mail.yahoo.com', 25)
>
>
>
> >>> server.connect('smtp.mail.yahoo.com', 25)
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "/usr/lib/python2.7/smtplib.py", line 317, in connect
>
> (code, msg) = self.getreply()
>
>   File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
>
> raise SMTPServerDisconnected("Connection unexpectedly closed")
>
> smtplib.SMTPServerDisconnected: Connection unexpectedly closed
>
>
>
> >>> server.connect('smtp.mail.yahoo.com', 25)
>
> (220, 'smtp.mail.yahoo.com ESMTP ready')
>
>
>
> >>> server.ehlo()
>
> (250, 'smtp431.mail.ir2.yahoo.com Hello***
> [***])\nPIPELINING\nENHANCEDSTATUSCODES\n8BITMIME\nSIZE 41697280\nSTARTTLS')
>
>
>
> >>> server.login("*** ","***")
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "/usr/lib/python2.7/smtplib.py", line 585, in login
>
> raise SMTPException("SMTP AUTH extension not supported by server.")
>
> smtplib.SMTPException: SMTP AUTH extension not supported by server.
>
>
>
>- -  I can create the object
>- -  First connect fails
>- -  Second is ok
>- -  Ehlo is fine
>- -  Login fails
>
>
>
> Same happens with other smtp servers
>
>
>
> Moreover, If I try to create the server towards port 465 it fails at step 1
>
>
>
> >>> server = smtplib.SMTP('smtp.mail.yahoo.com', 465)
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
>
> (code, msg) = self.connect(host, port)
>
>   File "/usr/lib/python2.7/smtplib.py", line 317, in connect
>
> (code, msg) = self.getreply()
>
>   File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
>
> raise SMTPServerDisconnected("Connection unexpectedly closed")
>
> smtplib.SMTPServerDisconnected: Connection unexpectedly closed
>
>
>
> has anyone encountered this before?
>
>
> task is
>
>
> - name: Sending an e-mail
>   mail:
> host: smtp.mail.yahoo.com
> port: 25
> username: "***"
> password: "***"
> to: ***
> subject: Ansible-report
> body: "report generated"
> attach:
>   - "sanity_report.csv"
>   - "{{playbook_dir}}/outputs.tgz"
>   delegate_to: localhost
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/22818f52-2dfd-427a-b25c-dc49dba84517%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACqv84gP2NEArK8b-3j0o84KYf9NvqeJP9VEHBzoShvHVfDrzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Get IP address, replace first three octets

2018-10-20 Thread Dick Visser
I don't know the hponcfg module, but from
https://docs.ansible.com/ansible/latest/modules/hponcfg_module.html#examples
it looks like you have to first copy an XML fragment with some
specific configuration code, and then use that with the hponcfg
module.
If you are able to use ansible 2.7, then you can use this expression
for the new ILO IP in your XML fragment:

{{ ansible_default_ipv4.address  | ipmath(2**24 + 2**16 + 2**8) }}"

This basically increases the first 3 octets by 1, by adding 2^24,
2^16, and 2^8 to them.
If you don't like your co-workers, use:

{{ ansible_default_ipv4.address  | ipmath(16843008) }}"

Dick


On Sat, 20 Oct 2018 at 17:38, LJ Medina  wrote:
>
> Hello,
> I'm trying to assign ILO IP addresses to a range of systems, using a 
> different subnet than their host IP, just matching the fourth octet.  For 
> example, if their IP would be 10.10.10.10, I want their ILO IP to be 
> 11.11.11.10.( Plan is to use "hponcfg" module to configure the host's ILO 
> after I obtain this address)
> What is the best way to achieve this with ansible?
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/53e0e0d5-6ec2-408a-9af9-8dce2384caba%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwN5kHWxaDzV0ri%2Bf6iBQw8QSh1UWDMGKxHpew06cvDghg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible Sudo Issue-Solaris

2018-10-20 Thread Dick Visser
Hi
In order to help we need the actual playbook or task that generates this
(erroneous) output. So please provide that.

Also, your mentioning of ‘basic command whoami using become command’
indicates that you might be using a wrong approach.
So also tell us what you’re actually trying to achieve on the target system.

Dick

On Sat, 20 Oct 2018 at 09:47, Bairava Surya  wrote:

> hi all,
>
>
> i want to run basic command on solaris OS i.e whoami using become
> command.so am able to sudo to different user using putty successfully but
> facing issues via ansible.
>
> OS:solaris
> Sudo user:mygroup
> sudo implementation:.usr/local/bin/sudo su - mygroup
> Authentication:QAS(VAS)
>
> Error:
> fatal: [mahcine]: FAILED! => {"changed": false, "module_stderr": "Shared
> connection to machineclosed.\r\n", "module_stdout": "/bin/sh: sudo:
> not found\r\n", "msg": "MODULE FAILURE", "rc": 1}
>
>
> can anyone guide me what changes i need to make inorder to get output as
> *mygroup*
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9f15238e-91ac-4106-985a-beddc098979a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwOBEv6CScPpoqzx4V0X4ivd_xQegn_xSOrVnjTU3NQbHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] How to convert a dictionary to a list with key=value elements or to a string with key=value elements?

2018-10-20 Thread Kai Stian Olstad
On Saturday, 20 October 2018 17:59:07 CEST Dmitriy Panteleyev wrote:
> Is there a way to modify this so that the item to the right of the equal 
> sign was quoted?
> 
> So...  one="wan", two="too", three="tree"

You can always use Jinja template

  - debug: msg="{% for k, v in test.iteritems() %}{{ k }}="{{ v }}"{% if not 
loop.last %}, {% endif %}{% endfor %}"

-- 
Kai Stian Olstad


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2579372.oObVpghzk8%40x1.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] How to convert a dictionary to a list with key=value elements or to a string with key=value elements?

2018-10-20 Thread Dmitriy Panteleyev
Is there a way to modify this so that the item to the right of the equal 
sign was quoted?

So...  one="wan", two="too", three="tree"



On Friday, October 19, 2018 at 2:06:01 PM UTC-6, Dmitriy Panteleyev wrote:
>
> I'll give that a try, thank you.
>
>
> On Friday, October 19, 2018 at 12:04:27 PM UTC-6, Matt Martz wrote:
>>
>> This should do the trick:
>>
>> {{ test|dictsort|map('join', '=')|join(', ') }}
>>
>> In my test, it produces:
>>
>> ok: [localhost] => {
>> "msg": "one=wan, three=tree, two=too"
>> }
>>
>> It's ordered slightly different than your version, and dictsort could 
>> help change the sort order, however just a note that python dictionaries in 
>> most python versions are unsorted.
>>
>> On Fri, Oct 19, 2018 at 12:55 PM Dmitriy Panteleyev  
>> wrote:
>>
>>> Given an *arbitrary* dictionary like:
>>>
>>> test:
>>>   one: wan
>>>   two: too
>>>   three: tree
>>>
>>> How can I convert it to a list like:
>>>
>>> test:
>>>   - one=wan
>>>   - two=too
>>>   - thee=tree
>>>
>>> The end result that I need is actually a string of these list items 
>>> ("one=one, two=too, three=tree").  I know that I can easily `join()` a list 
>>> of items, but if there is an easier way to directly convert the dictionary 
>>> to a string, that would work too.
>>>
>>> Again, I know neither the number of dictionary elements, nor the key 
>>> names.
>>>
>>> A solution that works in version 2.5 would be best...
>>>
>>> -- 
>>> 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 ansible-proje...@googlegroups.com.
>>> To post to this group, send email to ansible...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/ad406797-d8bb-4735-bce4-41c9b71a2388%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> Matt Martz
>> @sivel
>> sivel.net
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b8d4b422-9f09-40e5-9802-da587912f62c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Get IP address, replace first three octets

2018-10-20 Thread LJ Medina
Hello,
I'm trying to assign ILO IP addresses to a range of systems, using a different 
subnet than their host IP, just matching the fourth octet.  For example, if 
their IP would be 10.10.10.10, I want their ILO IP to be 11.11.11.10.( Plan is 
to use "hponcfg" module to configure the host's ILO after I obtain this address)
What is the best way to achieve this with ansible?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/53e0e0d5-6ec2-408a-9af9-8dce2384caba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] I would like to open a web browser with ansible

2018-10-20 Thread Julien
Hello I'd like to open a web browser into my Windows session with ansible, 
i've tried with this playbook, but this has no effect on my session



- name: Starting nginx
  win_shell: Start-Process -FilePath 
'D:\Stream\nginx-rtmp-win32-master\nginx.exe'

- name: Starting all vivaldi windows
  win_shell: start-process -FilePath 
'C:\Users\Julien\AppData\Local\Vivaldi\Application\vivaldi.exe' 
-ArgumentList 'www.site.com'



Thank you
Petit Julien.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/33b29ac6-1b98-4ae6-8218-15fc15c6d11c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible mail module failing at sending mail

2018-10-20 Thread Oriol Tauleria
Hello Umberto,
It's clear that the problem is not with Ansible xD.
You can try to configure thunderbird with your parameter and check where
the configuration fails. (You can try changing the mail server to
SMTP.mail.yahoo.com ... )

I'm out of ideas, sorry Umberto!

El dv., 19 oct. 2018 17.56, Umberto Manferdini 
va escriure:

> Hi Oriol
> that helped a bit!
> but also with python not working 100%
>
> tried this
>
> >>> server = smtplib.SMTP_SSL('smtp.mail.yahoo.it', 465)
> >>> server.connect('smtp.mail.yahoo.it', 465)
> (220, 'smtp.mail.yahoo.com ESMTP ready')
> >>> server.login("***","***")
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/usr/lib/python2.7/smtplib.py", line 622, in login
> raise SMTPAuthenticationError(code, resp)
>
> connect is way faster now and works at first attempt
>
> anyhow i get auth error. curious thing is that i try to login with those
> credentials via browser and they work so i cannot understand why there is
> an AUTH error
>
> Umberto
>
> Il giorno venerdì 19 ottobre 2018 17:20:34 UTC+2, Oriol Tauleria ha
> scritto:
>>
>> Hello Umberto,
>> Even in python?
>> (You need to change the smtplib.SMTP to SMTP_SSL with the new port?)
>> Thanks!
>>
>> El dv., 19 oct. 2018 17.09, Umberto Manferdini 
>> va escriure:
>>
>>> Hi Oriol,
>>> thanks for the tip
>>> unfortunately it does not work
>>> 465 gives me the same error
>>> 587 times out when trying to connect
>>> Umberto
>>>
>>> Il giorno venerdì 19 ottobre 2018 17:02:01 UTC+2, Oriol Tauleria ha
>>> scritto:

 Hello Umberto,
 Try changing the port to 465 or 587 and enabling
 secure: try


 More info: https://help.yahoo.com/kb/SLN4724.html
 And: https://docs.ansible.com/ansible/2.7/modules/mail_module.html

 El dv., 19 oct. 2018 16.55, Umberto Manferdini 
 va escriure:

> Hello,
>
> Trying to use the mail module to send emails as last task of my
> playbook
>
>
>
> It fails saying
>
>
> fatal: [r1 -> localhost]: FAILED! => {"changed": false, "msg":
> "Authentication to smtp.mail.yahoo.com:25 failed, please check your
> username and/or password", "rc": 1}
>
> even if i'm totally sure credentials are right
>
>
>
> As I imagine, underneath, it relies on on the smtplib python module ,
> I tried to do it manually
>
>
>
> I get this
>
>
>
> >>> server = smtplib.SMTP('smtp.mail.yahoo.com', 25)
>
>
>
> >>> server.connect('smtp.mail.yahoo.com', 25)
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "/usr/lib/python2.7/smtplib.py", line 317, in connect
>
> (code, msg) = self.getreply()
>
>   File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
>
> raise SMTPServerDisconnected("Connection unexpectedly closed")
>
> smtplib.SMTPServerDisconnected: Connection unexpectedly closed
>
>
>
> >>> server.connect('smtp.mail.yahoo.com', 25)
>
> (220, 'smtp.mail.yahoo.com ESMTP ready')
>
>
>
> >>> server.ehlo()
>
> (250, 'smtp431.mail.ir2.yahoo.com Hello***
> [***])\nPIPELINING\nENHANCEDSTATUSCODES\n8BITMIME\nSIZE 
> 41697280\nSTARTTLS')
>
>
>
> >>> server.login("***","***")
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "/usr/lib/python2.7/smtplib.py", line 585, in login
>
> raise SMTPException("SMTP AUTH extension not supported by
> server.")
>
> smtplib.SMTPException: SMTP AUTH extension not supported by server.
>
>
>
>- -  I can create the object
>- -  First connect fails
>- -  Second is ok
>- -  Ehlo is fine
>- -  Login fails
>
>
>
> Same happens with other smtp servers
>
>
>
> Moreover, If I try to create the server towards port 465 it fails at
> step 1
>
>
>
> >>> server = smtplib.SMTP('smtp.mail.yahoo.com', 465)
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
>
> (code, msg) = self.connect(host, port)
>
>   File "/usr/lib/python2.7/smtplib.py", line 317, in connect
>
> (code, msg) = self.getreply()
>
>   File "/usr/lib/python2.7/smtplib.py", line 368, in getreply
>
> raise SMTPServerDisconnected("Connection unexpectedly closed")
>
> smtplib.SMTPServerDisconnected: Connection unexpectedly closed
>
>
>
> has anyone encountered this before?
>
>
> task is
>
>
> - name: Sending an e-mail
>   mail:
> host: smtp.mail.yahoo.com
> port: 25
> username: "***"
> password: "***"
> to: ***
> 

[ansible-project] Ansible Sudo Issue-Solaris

2018-10-20 Thread Bairava Surya
hi all,


i want to run basic command on solaris OS i.e whoami using become 
command.so am able to sudo to different user using putty successfully but 
facing issues via ansible.

OS:solaris
Sudo user:mygroup
sudo implementation:.usr/local/bin/sudo su - mygroup
Authentication:QAS(VAS)

Error:
fatal: [mahcine]: FAILED! => {"changed": false, "module_stderr": "Shared 
connection to machineclosed.\r\n", "module_stdout": "/bin/sh: sudo:
not found\r\n", "msg": "MODULE FAILURE", "rc": 1}


can anyone guide me what changes i need to make inorder to get output as 
*mygroup*

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9f15238e-91ac-4106-985a-beddc098979a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.