@Dick Visser
*Wow, that helped, thanks a lot ! *
*Thanks for the valuable suggestions & nice explanation as well *
On Thursday, April 9, 2020 at 12:31:02 AM UTC-7, Dick Visser wrote:
>
> The result from your grep/awk shell task consists of multiple lines, each
> with one PID.
> So instead
HI,
Got a quick question, I'm trying to use include_vars in a main play which
addresses a vars file in which there is vars_prompt (i also have an
include_tasks in the same main play which uses the variables being
addressed by include_vars). when i run the main play there is no error, but
it
Hi Abhijit
Thanks for your reply. I did as per you note, How can i check the output &
also then how can i use that in action block ie shutdown action.
---
> - hosts: localhost
> gather_facts: false
> connection: local
> collections:
> - community.vmware
> - community.general
>
Can you test on a Different Linux OS, like Ubuntu and a Different Network
vSwitch
On Thursday, April 9, 2020 at 4:37:26 PM UTC+1, AJ wrote:
>
> Nope it's unreliable. Ran it a few more times, it completely worked a
> couple times, then the 3rd time it worked on the first VM and failed on the
>
Hi Abhijit
Thanks for your reply, Only Specific VMs where the status is
guestToolsNotRunning
Best
Kiran
On Thursday, April 9, 2020 at 1:27:18 AM UTC-7, Abhijeet Kasurde wrote:
>
> Hi Kiran,
>
> Do you want to run this operation on specific VMs or all the VMs which are
>
I got this error for below code - FAILED! => {"msg": "template error while
templating string: expected token 'end of print statement', got '='.
String: {{ var=oom.stdout }}"}
Please suggest , i am trying to get pid from shell cmd & then update it
with echo
- hosts: temp
> gather_facts:
Please suggest how can i add when clause in above, ie when tools status
"guestToolsNotRunning" , power off the vm.
- hosts: localhost
gather_facts: false
connection: local
vars_files:
- ./vars/vmware_vars.yml
vars:
vm_list:
- vm1
tasks:
- name: Gather VM info
The result from your grep/awk shell task consists of multiple lines, each
with one PID.
So instead of stdout you should use stdout_lines:
https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#stdout-lines
Also, you are iterating over a list of 1 item, which is
Hi Kiran,
Do you want to run this operation on specific VMs or all the VMs which are
"guestToolsNotRunning" status?
On Thu, Apr 9, 2020 at 12:53 PM Kiran Kumar wrote:
> Please suggest how can i add when clause in above, ie when tools status
> "guestToolsNotRunning" , power off the vm.
>
>
>
Hi,
The file */tests/test.yml* had 'hosts: localhost', hence it was
filtering the value from AWX inventory field indeed. I replaced it as
'hosts: all' and it's working now.
Sorry, I'll post to AWX groups for AWX issues next time.
Thanks for your kind reply.
8 Nisan 2020 Çarşamba 18:00:25
This issue is solved.
Issue was due to the firewall that was blocking port 5986 and 5985
Thanks,
Kumaresh
On Tuesday, April 7, 2020 at 8:59:16 PM UTC+5:30, Kumaresh kulal wrote:
>
>
>
> I need to run ansible playbooks on windows hosts protected by CyberArk.
>
>
> My main purpose of setting
On 4/8/20 4:56 AM, Gobi wrote:
> Ansible Version:
> ansible 2.9.4
> config file = /etc/ansible/ansible.cfg
> configured module search path = [u'/home/gobi/.ansible/plugins/modules',
> u'/usr/share/ansible/plugins/modules']
> ansible python module location =
>
Please, help me to understand, how fill hosts file.
Now i have linux hosts and it's work's fine.
Exaple, how host file look's like:
[all:vars]
ansible_connection=ssh
ansible_ssh_user=user
ansible_ssh_pass=user_pass
[host_linux]
192.168.[1:254].[1:3]
When trying to add windows hosts (ip adresses
On 4/9/20 2:30 PM, Kumaresh kulal wrote:
> I am trying to download AIM Client using win_get_url and it is failing. Is
> this the correct win module for downloading
> the zipped file from internet?
If you would mind to read the error message thoroughly ... it says that the
access is not
On 4/9/20 9:30 AM, Dick Visser wrote:
> The result from your grep/awk shell task consists of multiple lines, each
> with one PID.
> So instead of stdout you should use
> stdout_lines:
> https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#stdout-lines
>
>
>
Hi Kiran,
I did something like this -
---
- hosts: localhost
vars_files:
- vcenter_vars.yml
collections:
- community.vmware
- community.general
vars:
vm_list:
- debian_10_clone
- my_clone_deb_1
- test01
tasks:
- name: Get all tags
vmware_guest_info:
validate_certs: False
hostname: '{{
Hi There,
I'm newbie to Ansible and would like to know if Ansible netconf module
supports subscribing and processing of netconf notifications?
Please confirm and redirect me to appropriate documentation and samples.
Thanks,
Senthil Kumar Jayakumar
--
You received this message because you are
Hi Vladimir,
I have one more last question on the same request as we have different
python interpreter on some hosts. Is it possible to read the python
interpreter variable from CSV file while connecting the particular?
Prior to your solution, i use to use inventory to pass the variable to the
I am trying to download AIM Client using win_get_url and it is failing. Is
this the correct win module for downloading the zipped file from internet?
My playbook:
- name: Download AIM zip
hosts: all
tasks:
- name: Create C:\TEMP directory
win_file: path='C:\TEMP'
I have created a playbook to spin up three VMs from a vSphere template and
add configurations.
The VM creation portion looks like this:
- name: Clone {{ webtier_vm_template }} Template as Web1 & Apply Network
Configuration
vmware_guest:
hostname: "{{ vcenter_ip }}"
username: "{{
>
> I'm using Ansible to Deploy Windows machines: having no issues, out side
> of your Code: Outside of your code I'm not using both of the following:
>
>- start_connected: True
>-wait_for_ip_address: yes
>
> Not sure if Static IP Address settings need to have login set to use
If i can remember Correctly: I had the Same issue with Static IP not taken
affect, as my AutoLogin wasn't working, Once i fixed the Password on the
template, Static IP Address were taken effect.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project"
Thanks for the replies, I appreciate it. I haven't tried it but I don't
think autologon applies since I'm deploying Linux VMs. In the Ansible
documentation autologon is under the section "Parameters related to Windows
customization:"
For a while I was using delegate_to: localhost but I removed
Nope it's unreliable. Ran it a few more times, it completely worked a
couple times, then the 3rd time it worked on the first VM and failed on the
2nd VM because the network was unavailable.
So with open vmtools it doesn't even change the guest network settings.
With native vmtools it changes all
Hi Suresh,
On Thu, 9 Apr 2020 17:46:42 +0530
Suresh Karpurapu wrote:
> Hi Vladimir,
>
> I have one more last question on the same request as we have different
> python interpreter on some hosts. Is it possible to read the python
> interpreter variable from CSV file while connecting the
25 matches
Mail list logo