Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread Tony Wong
tony@ubuntu:~/ansiblework$ sudo apt-add-repository ppa:ansible/ansible Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread David Foley
> > $ sudo apt update >> $ sudo apt install software-properties-common >> $ sudo apt-add-repository --yes --update ppa:ansible/ansible >> $ sudo apt install ansible >> >> https://docs.ansible.com/ansible/2.3/intro_installation.html No you don't need to have the latest Ubuntu 19 > >> >> --

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread Tony Wong
doesnt look like i can do it from apt on ubuntu 18 I need ubuntu 19 for ansible 2.9? On Sun, Apr 19, 2020 at 1:54 PM David Foley wrote: > Can you Install Ansible 2.9 on a Test Machine and Retest on this version ? > > >>> -- > You received this message because you are subscribed to the Google

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread David Foley
Can you Install Ansible 2.9 on a Test Machine and Retest on this version ? >> -- 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

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread Tony Wong
it is already indented On Sun, Apr 19, 2020 at 12:47 PM Stefan Hornburg (Racke) wrote: > On 4/19/20 9:13 PM, Tony Wong wrote: > > Screen Shot 2020-04-19 at 12.10.46 PM.png > > > > > > > > tony@ubuntu:~/ansiblework$ ansible-playbook vmware_tools.yml > > [WARNING]: provided hosts list is empty,

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread Stefan Hornburg (Racke)
On 4/19/20 9:13 PM, Tony Wong wrote: > Screen Shot 2020-04-19 at 12.10.46 PM.png > > > > tony@ubuntu:~/ansiblework$ ansible-playbook vmware_tools.yml >  [WARNING]: provided hosts list is empty, only localhost is available. Note > that the implicit localhost does not match 'all' > > ERROR! no

Re: [ansible-project] Re: How to mix a reboot handler with a service restart handler in the same Ansible playbook?

2020-04-19 Thread Stefan Hornburg (Racke)
On 4/19/20 12:25 PM, David Foley wrote: > Looking at Ansible Reboot a Machine: > > - name: Reboot a slow machine that might have lots of updates to apply > reboot: > reboot_timeout: 3600 > > This will Reboot the System and Test the connection: I wonder if you do a > Timeout of zero:

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread Tony Wong
tony@ubuntu:~/ansiblework$ ansible --version ansible 2.8.2 config file = /home/tony/ansiblework/ansible.cfg configured module search path = [u'/home/tony/ansiblework/library'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible

[ansible-project] Re: How to mix a reboot handler with a service restart handler in the same Ansible playbook?

2020-04-19 Thread David Foley
Looking at Ansible Reboot a Machine: - name: Reboot a slow machine that might have lots of updates to apply reboot: reboot_timeout: 3600 This will Reboot the System and Test the connection: I wonder if you do a Timeout of zero: default is 6000 what happens if you set this to zero, Also

[ansible-project] How to mix a reboot handler with a service restart handler in the same Ansible playbook?

2020-04-19 Thread Ricardo Amaral
I'm writing an Ansible playbook to set up my Raspberry Pi so that I can keep a versioned configuration and a way for me to quickly get a Pi up and running in case I need to reset it or start from scratch. This playbook has a bunch of tasks where some of them (very few) notify a handler to

Re: [ansible-project] Re: How to change remote hosts' terminal screen size/resolution in Ansible

2020-04-19 Thread Karl Auer
I've offered all the help I can. Your best bet is to contact the people who wrote the program you are trying to use. You may find it easier to do things like set environment variables and redirect output using the shell module:

Re: [ansible-project] Re: How to change remote hosts' terminal screen size/resolution in Ansible

2020-04-19 Thread Stefan Hornburg (Racke)
On 4/19/20 8:25 AM, Samir Kothawade wrote: > > Hello Samir, this is now really off topic. Try to figure out to wrangle the data out of this rather unhelpful binary by means of "expect" or similar software, but your problem is not related to Ansible. Regards Racke > On Sun, 19 Apr

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread Kiran Kumar
Use https://onlineyamltools.com/validate-yaml This will help you validate the syntax On Saturday, April 18, 2020 at 2:26:10 PM UTC-7, Tony Wong wrote: > > this is what i have. but still not working > > On Sat, Apr 18, 2020 at 1:55 PM David Foley > wrote: > >> Why Aren't you using your Local

Re: [ansible-project] Check status of VMware tools & reboot if VMware tools are not running

2020-04-19 Thread Kiran Kumar
Thanks Abhijeet ! On Friday, April 17, 2020 at 1:26:53 AM UTC-7, Abhijeet Kasurde wrote: > > --- > - hosts: localhost > vars_files: > - vcenter_vars.yml > vars: > vm_list: > - test01 > tasks: > - name: Get information about the virtual machine > vmware_guest_info: > validate_certs: False >

Re: [ansible-project] Re: How to change remote hosts' terminal screen size/resolution in Ansible

2020-04-19 Thread Samir Kothawade
On Sun, 19 Apr 2020 at 05:24, Karl Auer wrote: > TERM=dumb > > Sorry, I mistyped. The minus sign should have been an equals sign. > > >> >> Can you please help me where I can use this in my code and see the content in a text file ? Here is my anible code...pasting it here again *-** hosts: