You can't become a user without their password.

On Tuesday, August 23, 2022 at 9:52:56 AM UTC-4 [email protected] 
wrote:

> I thought I might just need a  become_user option adding.............
>
> On Tuesday, 23 August 2022 at 13:37:18 UTC+1 [email protected] wrote:
>
>> Hi again,
>>
>> You need to configure the credential in Tower and apply it to your 
>> template.
>>
>> In the credential settings you set the become user:
>>
>> Good luck,
>>
>>
>> On 23/08/2022 14:03, 'Nicholas Branson' via Ansible Project wrote:
>>
>> Thanks for replying Michael,  
>>
>> I have made changes as recommended and now getting a different error.
>>
>> FAILED  msg  The Powershell shell family is incompatible with the sudo 
>> become plugin
>>
>> Something inside Tower Presumably
>>
>>
>> Regards,
>> Nick
>>
>> On Tuesday, 23 August 2022 at 12:05:25 UTC+1 [email protected] wrote:
>>
>>> Hi Nick,
>>>
>>> Here is an example of a working config, note the use of (hosts: all) in 
>>> the playbook since the inventory will be managed by Tower:
>>>
>>> ---
>>>
>>> - hosts: all
>>>   tasks:
>>>     - name: Ping windows host
>>>       ansible.windows.win_ping:
>>>       register: ping_result
>>>     
>>>     - name: show ping result
>>>       ansible.builtin.debug:
>>>         var: ping_result
>>>
>>> Then in Tower create an inventory and add you connection variables, I 
>>> suggest you try basic first the upgrade once you can establish a connection:
>>>
>>> Add your host to the inventory and select it when creating the job 
>>> template.
>>>
>>> Hope this helps.
>>>
>>> Regards,
>>>
>>>
>>> On 23/08/2022 11:43, 'Nicholas Branson' via Ansible Project wrote:
>>>
>>> I am still holding my Ansible Newbie Keys Tight !   
>>>
>>> Not getting very far with Ansible Tower and Windows. Struggling to even 
>>> Ping a Windows Server. I've configured WinRM service settings, Opened 
>>> Firewall Port, etc. 
>>>
>>> FAILED! msg No setting was provided for required configuration plugin 
>>> type become plugin: runas setting: become_user
>>>
>>> win_ping.yml file
>>> ---
>>>   - name: win_ping module
>>>     hosts: windows
>>>     become: true
>>>     gather_facts: false
>>>     tasks:
>>>       - name: test connection
>>>         ansible.windows.win_ping:
>>>
>>> vars file
>>> ---
>>> ansible_shell_type: powershell
>>> ansible_user: Iwantmymummy
>>> ansible_password: secret not telling you lot !
>>> ansible_connection: winrm
>>> ansible_port: 5986
>>> ansible_winrm_server_cert_validation: ignore
>>> ansible_winrm_transport: credssp
>>> ansible_become_method: runas
>>>
>>> Does anyone know what is wrong and how I can move forward ?
>>>
>>> Many Thanks,
>>> Nick
>>>
>>>
>>>
>>>
>>> DISCLAIMER
>>>
>>> This email is confidential and subject to important disclaimers and 
>>> conditions in relation to monitoring, viruses, confidentiality and legal 
>>> privilege full details of which can be viewed on our Email Policy at the 
>>> following link: http://www.next.co.uk/Policy/
>>>
>>> Next Holdings Ltd registered in England 35161.  Registered Office 
>>> Desford Road Enderby Leicester LE19 4AT.  Authorised and regulated by the 
>>> Financial Conduct Authority
>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/f875f002-c45c-4fd4-808a-1c189d6c30fan%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/ansible-project/f875f002-c45c-4fd4-808a-1c189d6c30fan%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> -- 
>>> Michael NELSON
>>>
>>>
>>
>> DISCLAIMER
>>
>> This email is confidential and subject to important disclaimers and 
>> conditions in relation to monitoring, viruses, confidentiality and legal 
>> privilege full details of which can be viewed on our Email Policy at the 
>> following link: http://www.next.co.uk/Policy/
>>
>> Next Holdings Ltd registered in England 35161.  Registered Office Desford 
>> Road Enderby Leicester LE19 4AT.  Authorised and regulated by the Financial 
>> Conduct Authority
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/b56a17c0-d94c-42f3-9c71-32139cc74aean%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/b56a17c0-d94c-42f3-9c71-32139cc74aean%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> -- 
>> Michael NELSON
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e2045f4c-3e4d-47d6-936f-d7d35c0627f7n%40googlegroups.com.

Reply via email to