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,
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f875f002-c45c-4fd4-808a-1c189d6c30fan%40googlegroups.com.
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,
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b56a17c0-d94c-42f3-9c71-32139cc74aean%40googlegroups.com.
It can,
We use vcloud director over the top of vmware and we can deploy orgs to vcd, create edge gateways, deploy vm’s input firewall rules and login and configure deployed vm’s once they are deployed.
windows machines are a little more difficult to connect to after a provision that linux servers but if you can get a winrm server up on those servers or an openssh server, you can connect and configure.
We use this module for vcd,
https://github.com/vmware/ansible-module-vcloud-director
but you can do it direct to vcenter too,
https://docs.ansible.com/ansible/2.6/vmware/scenario_clone_template.html
From: 'Nicholas Branson' via Ansible Project <ansible...@googlegroups.com>
Sent: 24 August 2022 11:37
To: Ansible Project <ansible...@googlegroups.com>
Subject: Re: [ansible-project] win_ping.yml
Caution: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe |
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/220a4181-06ea-4ad9-a8fe-9c5b52b0dfe8n%40googlegroups.com.
Proud to be a certified B Corporation
This message is private and confidential. If you have received this message in error, please notify us and remove it from your system.
Zen Internet Limited may monitor email traffic data to manage billing, to handle customer enquiries, and for the prevention and detection of fraud. We may also monitor the content of emails sent to and/or
from Zen Internet Limited for the purposes of security, staff training and to monitor the quality of service.
Zen Internet Limited is registered in England and Wales, Sandbrook Park, Sandbrook Way, Rochdale, OL11 1RY Company No. 03101568 VAT Reg No. 686 0495 01
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3142f346-34d2-45fe-b959-185e2541a11dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/89f263ab-2eba-43c0-8a06-4ed23ce2cc90n%40googlegroups.com.
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
--