[ansible-project] cannot get this playbook to work with inventory file

2019-04-06 Thread Tony Wong
I am having an issue with ansible/vmware. Trying to clone vms from an inventory file and playbook inventory file: [test-vms] ans-test[01:05] 'disk'='60' 'memory'='2048' 'cpucount'='1' 'datastore'='VOL1-TEST' 'osid='windows9Server64Guest' playbook yml file: vars_prompt: - name:

[ansible-project] ansible add esxi host to datacenter or folder

2020-04-13 Thread Tony Wong
I am new to ansible and want to know how to add a esxi host to vcenter in a datacenter I have the following in a yml file but not sure what else to do - hosts: localhost connection: local tasks: - name: include vars include_vars: - name: Add ESXi Host to vCenter

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

2020-04-18 Thread Tony Wong
Hi why is it when i run this playbook I get this error 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 action detected in task. This often

Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Tony Wong
Hi, Thanks. what would the host be under '/DC01/host/myhostfolder' ? I have a parent folder that I need to add the host into but its not taking it. can i specify a vcenter folder ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Tony Wong
how do i specify this folder? The is a vcenter folder and I need to add it to the HK datacenter On Mon, Apr 13, 2020 at 12:47 PM Tony Wong wrote: > Hi, > > Thanks. what would the host be under '/DC01/host/myhostfolder' ? > > I have a parent folder that I need to add the ho

Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Tony Wong
+ UTC > State: connected > > Regards, > > > > El lun., 13 abr. 2020 a las 20:58, Tony Wong () > escribió: > >> how do i specify this folder? The is a vcenter folder and I need to add >> it to the HK datacenter >> >> On Mon, Apr 13, 20

[ansible-project] ansible updating vmware tools on windows vms

2020-04-12 Thread Tony Wong
does anyone have a playbook or how do i get started with a playbook updating vmwasr tools on windows guests? -- 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] need assistance with this playbook

2020-04-14 Thread Tony Wong
how do i create a ansible vmware playbook with following - join esx host to domain - setup ntp with - 0.pool.ntp.org, 1.pool.ntp.org - set advance settings on host : VMkernel.Boot.hyperthreadingMitigation to True - reboot host -- You received this message because you are subscribed to the

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

2020-04-19 Thread Tony Wong
python version = 2.7.16 (default, Apr 9 2019, 04:50:39) [GCC 8.3.0] On Sat, Apr 18, 2020 at 2:57 PM Dick Visser wrote: > What does 'ansible --version' say? > > On Sat, 18 Apr 2020 at 23:26, Tony Wong wrote: > >> this is what i have. but still not working >> >> O

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 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 > >

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-18 Thread Tony Wong
On Sat, Apr 18, 2020 at 1:42 PM Tony Wong wrote: > what editor can i use on my ubuntu box? I cant use anything other than > vim. > > > still getting the error. > > tony@ubuntu:~/ansiblework$ ansible-playbook info.yml > [WARNING]: provided hosts list is empty, only localh

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

2020-04-18 Thread Tony Wong
er wrote: > That module was introduced in ansible 2.5: > > https://docs.ansible.com/ansible/latest/modules/vmware_guest_powerstate_module.html > > Do you run an older version? > > > > On Sat, 18 Apr 2020 at 20:22, Tony Wong wrote: > >> Hi >> >> why

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

2020-04-18 Thread Tony Wong
what editor can i use on my ubuntu box? I cant use anything other than vim. still getting the error. tony@ubuntu:~/ansiblework$ ansible-playbook info.yml [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' ERROR! Syntax

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

2020-04-18 Thread Tony Wong
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 Machine using Atom or VS Code to build > your Yaml files then using WinSCP copy the playbooks over ? > > On Saturday, April 18, 2020 at 9:43:00 PM UTC+

[ansible-project] Re: ansible updating vmware tools on windows vms

2020-04-12 Thread Tony Wong
}}" uuid: "{{ vminfo.instance.config.uuid }}" delegate_to: localhost what else do i need? On Sunday, April 12, 2020 at 10:16:23 AM UTC-7, Tony Wong wrote: > > does anyone have a playbook or how do i get started with a playbook > updating vmwasr tool

[ansible-project] ansiblw win_ping failed

2020-04-25 Thread Tony Wong
tony@ubuntu:~/windows$ ansible windows -i hosts -m win_ping 10.50.1.231 | UNREACHABLE! => { "changed": false, "msg": "ssl: the specified credentials were rejected by the server", "unreachable": true my yml file ansible_user: 'administrator' ansible_password: 'x' ansible_port:

[ansible-project] error installing nginx

2020-04-28 Thread Tony Wong
[image: Screen Shot 2020-04-28 at 10.53.46 AM.png] any idea? -- 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] ansiblw win_ping failed

2020-04-25 Thread Tony Wong
stener = false EnableCompatibilityHttpsListener = false CertificateThumbprint AllowRemoteAccess = true [Source="GPO"] Winrs On Sat, Apr 25, 2020 at 9:58 AM Tony Wong wrote: > > > tony@ubuntu:~/windows$ ansible windows -i hosts -m win_ping > 10.50.1.231 |

[ansible-project] Re: ssl: the specified credentials were rejected by the server

2020-04-25 Thread Tony Wong
I am getting same issue. I cannot allow unencrypted winrm as thats set up gpo. this is from my windows client PS C:\scripts> winrm get winrm/config Config MaxEnvelopeSizekb = 500 MaxTimeoutms = 6 MaxBatchItems = 32000 MaxProviderRequests = 4294967295 Client

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

2020-04-22 Thread Tony Wong
executable location = /usr/bin/ansible python version = 2.7.17 (default, Apr 15 2020, 17:20:14) [GCC 7.5.0] On Wed, Apr 22, 2020 at 8:54 AM Tony Wong wrote: > Hi I am still getting error > > > > On Wed, Apr 22, 2020 at 8:44 AM Abhijeet Kasurde > wrote: > >> I attached a cor

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

2020-04-22 Thread Tony Wong
ok got it On Wed, Apr 22, 2020 at 9:39 AM David Foley wrote: > You need to debug out the message > > -- > 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

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

2020-04-22 Thread Tony Wong
hi to run this for multiple machines, do i need to put it in a vars file? On Wed, Apr 22, 2020 at 9:58 AM Tony Wong wrote: > ok got it > > > > > On Wed, Apr 22, 2020 at 9:39 AM David Foley wrote: > >> You need to debug out the message >> >> -- &

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

2020-04-22 Thread Tony Wong
I am finding switching from powercli to ansible for vmware tough. any benefits to using ansible vs powercli? On Wed, Apr 22, 2020 at 10:16 AM David Foley wrote: > You need to do loop on the var > > -- > You received this message because you are subscribed to the Google Groups > "Ansible

Re: [ansible-project] Shutting Down Windows with Ansible

2020-05-12 Thread Tony Wong
I am interest in this as well On Tue, May 12, 2020 at 1:53 PM Jeremy Thompson wrote: > I'm simply wanting to create a playbook that will shutdown a windows > computer. I've got my ansible server talking to my windows and can ping it, > but my playbook gives the below error when trying to run.

[ansible-project] how to install a specific KB from windows update

2020-05-17 Thread Tony Wong
I am trying to install a specific update KB4541509 but it is not getting installed. I got the playbook running but not getting installed here is from the ansible win log 2020-05-17 10:22:51Z Creating Windows Update session... 2020-05-17 10:22:51Z Create Windows Update searcher... 2020-05-17

[ansible-project] is there a progress bar in TASK?

2020-05-17 Thread Tony Wong
is there a progress bar available in TASK? [image: Screen Shot 2020-05-17 at 10.25.19 AM.png] -- 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] Re: is there a progress bar in TASK?

2020-05-17 Thread Tony Wong
> A Quick Google Search Returned this for me. I'll assume you did the same? > > > https://stackoverflow.com/questions/41194021/how-can-i-show-progress-for-a-long-running-ansible-task > > > > On Sunday, May 17, 2020 at 6:26:50 PM UTC+1, Tony Wong wrote: >> >> is there

[ansible-project] Re: how to install a specific KB from windows update

2020-05-17 Thread Tony Wong
this is my error FAILED! => {"msg": "The conditional check 'update_result.reboot_required == true' failed. The error was: error while evaluating conditional (update_result.reboot_required == true): 'update_result' is undefined\n\nThe error appears to be in

[ansible-project] installing windows updates on windows hosts

2020-05-13 Thread Tony Wong
--- - name: Install all critical and security updates hosts: all win_updates: category_names: - CriticalUpdates - SecurityUpdates state: installed register: update_result - name: Reboot host if required win_reboot: when: update_result.reboot_required but getting this

[ansible-project] winrm http port 5985

2020-05-15 Thread Tony Wong
can winrm communicate via http 5985? my group[_vars file ansible_user: 'administrator' ansible_password: 'xx' ansible_port: 5985 ansible_connection: 'winrm' ansible_winrm_server_cert_validation: 'ignore' ansible_winrm_transport: 'ntlm' but getting it failed on one win host 10.200.1.31 |

[ansible-project] kerberos

2020-05-15 Thread Tony Wong
trying to get kerberos to work . I got all the libraries and krb5.conf file setup. I got a ticket from klist but when i do win_ping I get errors ansible windows -i hosts -m win_ping 10.50.1.231 | UNREACHABLE! => { "changed": false, "msg": "kerberos: authGSSClientStep() failed:

[ansible-project] Re: kerberos

2020-05-15 Thread Tony Wong
ok I got kerberos working now. but only via port 5986 why is that? On Friday, May 15, 2020 at 12:58:37 PM UTC-7, Tony Wong wrote: > > trying to get kerberos to work . I got all the libraries and krb5.conf > file setup. I got a ticket from klist but when i do win_ping > &g

[ansible-project] Re: winrm http port 5985

2020-05-15 Thread Tony Wong
it only works with https over 5986 if I change it to ntlm ansible_user: 'administrator' ansible_password: 'xxx' ansible_port: 5986 ansible_connection: 'winrm' ansible_winrm_server_cert_validation: 'ignore' ansible_winrm_transport: 'ntlm' then it works its not a firewall issue either since

Re: [ansible-project] Re: how to install a specific KB from windows update

2020-05-18 Thread Tony Wong
On Mon, May 18, 2020 at 5:39 AM Tony Wong wrote: > Thank you > > On Mon, May 18, 2020 at 12:58 AM Dick Visser > wrote: > >> Your register statement on the win_updates task is incorrectly indented >> >> On Mon, 18 May 2020 at 07:00, Tony Wong wrote: >> > &

Re: [ansible-project] Re: how to install a specific KB from windows update

2020-05-18 Thread Tony Wong
Thank you On Mon, May 18, 2020 at 12:58 AM Dick Visser wrote: > Your register statement on the win_updates task is incorrectly indented > > On Mon, 18 May 2020 at 07:00, Tony Wong wrote: > > > > this is my error > > > > > > FA

Re: [ansible-project] Re: is there a progress bar in TASK?

2020-05-18 Thread Tony Wong
Thank you! On Sun, May 17, 2020 at 10:10 PM 'Karolis Pocius' via Ansible Project < ansible-project@googlegroups.com> wrote: > The spacing on "register: update_result" is off -- you need to move it > back a bit (align it with "win_updates"). > > On Mon, Ma

Re: [ansible-project] installing windows updates on windows hosts

2020-05-14 Thread Tony Wong
nice thank you. Do I need to specify the win_reboot module? here is my playbook --- - name: Install all critical and security updates hosts: all tasks: - name: Install windows updates win_updates: category_names: - CriticalUpdates - SecurityUpdates

Re: [ansible-project] installing windows updates on windows hosts

2020-05-14 Thread Tony Wong
I am not sure what it should be I logged everything to a file and doesnt look like any updates but still getting this error TASK [Reboot host if required] ** fatal: [10.50.1.231]: FAILED! => {"changed":

Re: [ansible-project] installing windows updates on windows hosts

2020-05-14 Thread Tony Wong
Just found out when I run windows update manually on the machine, there were 3 updates that ansible didnt report back? why is that On Thu, May 14, 2020 at 9:49 AM Tony Wong wrote: > I am not sure what it should be > > I logged everything to a file and doesnt look like any updates

Re: [ansible-project] Re: ssl: the specified credentials were rejected by the server

2020-05-13 Thread Tony Wong
Thanks I changed the auth to ntlm and works now another question how do I use a domain account instead of a local administrator? On Sat, Apr 25, 2020 at 3:28 PM Jordan Borean wrote: > You WinRM service has been set to reject Basic auth. You need to change > the auth to something like kerberos

[ansible-project] Vm mount iso and install vmware tools

2020-05-19 Thread Tony Wong
IS there a playbook or how do i start with installing and upgrading vmware tools on windows vm for VM with no tools installed I need to 1. mount the vmware tools iso 2. run the setup64.exe /S /v “/qn REBOOT=R ADDLOCAL=ALL” any idea how to start with this? -- You received this message

Re: [ansible-project] Vm mount iso and install vmware tools

2020-05-19 Thread Tony Wong
ting the matrix on the vmware website on host and guest > > (Sometime you can install a vmware tools not available on iso using this > tip but compatible with your guest/host combination) > > Regards, > > JYL > > > Le 19/05/2020 à 15:56, Tony Wong a écrit : > > IS

Re: [ansible-project] Re: Ansible Windows Deployment - 'Connection aborted.', error(104, 'Connection reset by peer')

2020-08-17 Thread Tony Wong
i dont understand what this mean You need both the hotfix and the registry keys set for the connection to break like this, having one or the other is not enough. A On Sun, Aug 16, 2020 at 5:40 PM Tony Wong wrote: > I have same problem. I enabled winrm over https and i can see it lis

[ansible-project] Re: need playbook to update ubuntu and centos

2020-09-28 Thread Tony Wong
this is all i have for ubuntu system. please advise --- - hosts: ubuntu become: true become_user: root tasks: - name: Update apt repo/cache apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 - name: Upgrade all packages on servers apt:

Re: [ansible-project] Re: need playbook to update ubuntu and centos

2020-09-28 Thread Tony Wong
also i want to know how to break this into a role instead On Mon, Sep 28, 2020 at 10:29 AM Tony Wong wrote: > advice. Need to add the yum part for centos > > need some examples > > On Monday, September 28, 2020 at 10:28:23 AM UTC-7 dick@geant.org > wrote: > >> O

Re: [ansible-project] Re: need playbook to update ubuntu and centos

2020-09-28 Thread Tony Wong
advice. Need to add the yum part for centos need some examples On Monday, September 28, 2020 at 10:28:23 AM UTC-7 dick@geant.org wrote: > On Mon, 28 Sep 2020 at 19:02, Tony Wong wrote: > > > > > > this is all i have for ubuntu system. please advise > >

[ansible-project] need playbook to update ubuntu and centos

2020-09-24 Thread Tony Wong
how can i update both ubuntu and centos boxes all in one playbook? -- 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] Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
0.5-15389592-x86_64.exe dest: c:\temp\VMware-tools-11.0.5-15389592-x86_64.exe - name: Install Vmware tools Silent win_package: path: c:\temp\VMware-tools-11.0.5-15389592-x86_64.exe product_id: '{742FCBAF-EE5D-48B2-9E95-DA0513B79570}' arguments: /S /v “/qn

Re: [ansible-project] Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
my email : win_get_url module > > > Télécharger BlueMail pour Android <http://www.bluemail.me/r?b=15860> > Le 19 mai 2020, à 17:42, Tony Wong a écrit: >> >> I am not sure. because curl is not available on windows boxes. >> >> On Tue, May 19, 2020 at 8:

Re: [ansible-project] ansible kerberos library is not installed

2020-05-26 Thread Tony Wong
this is error i keep getting tony@ubuntu:~$ pip install pykerberos DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2

Re: [ansible-project] Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
Thank you. On Tue, May 26, 2020 at 6:26 AM Stefan Hornburg (Racke) wrote: > On 5/26/20 3:09 PM, Tony Wong wrote: > > any idea why this is failing? Syntax is right as far as I can tell > > > > That tells me that your prowess in reading error messages is somewhat >

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread Tony Wong
"guest.disk", "overallStatus" ], "proxy_host": null, "proxy_port": null, "schema": "vsphere", "tags": false, "use_instance_uuid":

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread Tony Wong
skipped=0rescued=0ignored=0 On Sun, May 24, 2020 at 4:08 PM James Cassell wrote: > > On Sun, May 24, 2020, at 6:56 PM, Tony Wong wrote: > > --- > > - name: get info vm > > hosts: localhost > > connection: local > > gather_facts: false > >

[ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread Tony Wong
--- - name: get info vm hosts: localhost connection: local gather_facts: false vars: vm_list: - dr-reb - dr-wac tasks: - name: get info about the virtual machine vmware_guest_info: hostname: vcenter username: administrator@vsphere.local

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-25 Thread Tony Wong
what line am i missing to output the information? without using - On Sun, May 24, 2020 at 11:17 PM David Foley wrote: > It's outputting your items list, as you have msg on the list if you are > looking to put the info you need to use a register then either var or > message that register > >

[ansible-project] ansible kerberos library is not installed

2020-05-25 Thread Tony Wong
not sure what happened but this was working last week. now I am getting this error tony@ubuntu:~/windows$ ansible windows -i hosts -m win_ping -v ansible 2.9.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/tony/.ansible/plugins/modules',

Re: [ansible-project] ansible kerberos library is not installed

2020-05-25 Thread Tony Wong
any idea? I cant connect to my windows machines now and winrm is setup correctly On Mon, May 25, 2020 at 6:44 AM Tony Wong wrote: > not sure what happened but this was working last week. > > now I am getting this error > > > tony@ubuntu:~/windows$ ansible windows -i hosts -m w

Re: [ansible-project] ansible kerberos library is not installed

2020-05-25 Thread Tony Wong
-2ubuntu0.1) but 1.16-2ubuntu1.1 is to be installed E: Unable to correct problems, you have held broken packages. On Mon, May 25, 2020 at 7:00 AM Tony Wong wrote: > any idea? I cant connect to my windows machines now and winrm is setup > correctly > > On Mon, May 25, 2020 at 6:44 AM Tony

Re: [ansible-project] ansible kerberos library is not installed

2020-05-25 Thread Tony Wong
any ieea? I am able to chem ntlm auth is working fine. its just kerberos is failed On Mon, May 25, 2020 at 8:39 AM Tony Wong wrote: > maybe I am missing krb? > > > tony@ubuntu:~/windows$ sudo apt install -y krb5-user libpam-krb5 > libpam-ccreds auth-client-config > Reading pac

Re: [ansible-project] ansible kerberos library is not installed

2020-05-25 Thread Tony Wong
getting this error tony@ubuntu:~$ sudo pip install pykerberos [sudo] password for tony: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More

Re: [ansible-project] An exception occurred during task execution.

2020-06-01 Thread Tony Wong
** 127.0.0.1 : ok=1changed=0unreachable=0failed=1 skipped=0rescued=0ignored=0 On Mon, Jun 1, 2020 at 11:58 AM Ompragash wrote: > As you can see "IOError: [Errno 13] *Permission denied*: > '/etc/fstab'", you're executing the pla

[ansible-project] An exception occurred during task execution.

2020-06-01 Thread Tony Wong
I am trying to deploy new vmware vcsa appliance from iso usibg ansible below is playbook --- - hosts: localhost vars: name_iso: VMware-VCSA-all-6.7.0-16046470.iso tasks: - name: Creating a Directory to mount the iso file become: yes file: path: /mnt/iso

Re: [ansible-project] An exception occurred during task execution.

2020-06-01 Thread Tony Wong
h -c 'rm -f -r /home/tony/.ansible/tmp/ansible-tmp-1591051343.05-86141275342768/ > /dev/null 2>&1 && sleep 0' fatal: [127.0.0.1]: FAILED! => { "changed": false, "msg": "Could not find or access '/mnt/iso/*' on the Ansible Controller.\nIf you are using a

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
exist win_file: path: c:\temp state: directory - name: Download exe to winbox win_get_url: url: https://packages.vmware.com/tools/esx/latest/windows/x64/VMware-tools-11.0.5-15389592-x86_64.exe dest: c:\temp\VMware-tools-11.0.5-15389592-x86_64.exe - nam

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
w@xx on PORT 5986 TO w10-adm-tkw EXEC (via pipeline wrapper) ok: [w10-adm-tkw] => { "changed": false, "reboot_required": false } META: ran handlers META: ran handlers PLAY RECAP **

Re: [ansible-project] Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
"rc": 1639, "reboot_required": false, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": [] On Tue

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
but I got all the steps working except win_package, There seems to be something wrong with execution. I manually ran the setup.exe and works On Tue, May 26, 2020 at 12:18 PM David Foley wrote: > instead of the win_get_url use the win_package that will install the > application for you

Re: [ansible-project] Re: Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
ware-tools-install-silently/ > > Regards, > > > JYL > > > Le 26/05/2020 à 22:46, Tony Wong a écrit : > > but I got all the steps working except win_package, > > There seems to be something wrong with execution. > > I manually ran the setup.exe and works > >

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
ok got it working now On Tue, Jun 2, 2020 at 7:20 AM Tony Wong wrote: > ok I got the copy to work. > > instead of copying, cant I just run vcsa-deply directory from mnt/iso? > > On Tue, Jun 2, 2020 at 6:58 AM Tony Wong wrote: > >> I am trying to use iso_extract

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
ok I got the copy to work. instead of copying, cant I just run vcsa-deply directory from mnt/iso? On Tue, Jun 2, 2020 at 6:58 AM Tony Wong wrote: > I am trying to use iso_extract to copy the iso contents to a directory. > can i do that? Still getting error > > > TASK [Copy cont

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
VMware-VCSA-all-6.7.0-16046470.iso" } }, "msg": "missing required arguments: files" name: Copy contents to working directory iso_extract: image: /home/temp/VMware-VCSA-all-6.7.0-16046470.iso

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
STABLISH LOCAL CONNECTION FOR USER: tony >>> > <127.0.0.1> EXEC /bin/sh -c 'echo ~tony && sleep 0' >>> > <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo >>> /home/tony/.ansible/tmp/ansible-tmp-1591038655.19-10720985

[ansible-project] Re: unable tp ping esx hosts

2020-10-23 Thread Tony Wong
! => { "msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program" } On Friday, October 23, 2020 at 8:55:18 AM UTC-7 Tony Wong wrote: > > I am trying simple ping command to esx host but keep getting this > > > ansible

[ansible-project] unable tp ping esx hosts

2020-10-23 Thread Tony Wong
I am trying simple ping command to esx host but keep getting this ansible esx -m ping ansible esxhost-m ping esxhost | FAILED! => { "msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program" } -- You received this message because you are

[ansible-project] Re: unable tp ping esx hosts

2020-10-23 Thread Tony Wong
nimal of type stdout, v2.0 from >> /usr/local/lib/python3.8/site-packages/ansible/plugins/callback/minimal.py >> META: ran handlers >> ESTABLISH SSH CONNECTION FOR USER: root >> myesxhost | FAILED! => { >> "msg": "to use the 'ssh' connection type

[ansible-project] Re: unable tp ping esx hosts

2020-10-23 Thread Tony Wong
"pong" } On Friday, October 23, 2020 at 10:45:12 AM UTC-7 Tony Wong wrote: > but I am on osX in virtualenv > > On Friday, October 23, 2020 at 9:09:00 AM UTC-7 sobhan.a...@gmail.com > wrote: > >> Please install SSHpass on your controller node. >> yum ins

[ansible-project] need a playbook to change esxi root pass

2020-10-23 Thread Tony Wong
How do I change the root password on all esxi hosts with a pb? -- 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.

[ansible-project] Re: need a playbook to change esxi root pass

2020-10-24 Thread Tony Wong
uot; } PLAY RECAP *** esxhost: ok=1changed=0unreachable=0failed=1 skipped=0res

[ansible-project] Re: need a playbook to change esxi root pass

2020-10-24 Thread Tony Wong
user }}" local_user_password: "{{ esx_local_root_pass }}" password: "{{ esxi_root_pass }}" username: "{{ esxi_root_user }}" validate_certs: "n" vars_files: - answerfile.yml On Saturday, October 24, 2020 at 5:07:11 PM UTC-7 Tony Wong

Re: [ansible-project] Re: need a playbook to change esxi root pass

2020-10-25 Thread Tony Wong
local host . You can simply run this on localhost > . It will work . Make exsi hosts on loop > > //Vinoth > > On Sun 25. Oct 2020 at 02:08, Tony Wong wrote: > >> >> >> my playbook >> >> --- >> - name: "change the root passw

[ansible-project] what does this mean?

2020-10-25 Thread Tony Wong
Keep getting this error when running my playbook The full traceback is: Traceback (most recent call last): File

Re: [ansible-project] change root password - ned help

2020-10-27 Thread Tony Wong
ocalhost On Tuesday, October 27, 2020 at 4:37:42 AM UTC-7 Sebastian Meyer wrote: > Hi Tony, > > On Montag, 26. Oktober 2020 18:34:50 CET Tony Wong wrote: > > answer file > > > > esxi_hostname: '{{ inventory_hostname }}' > > ^ you are setting esxi_hostname to inventory

[ansible-project] Re: need a playbook to change esxi root pass

2020-10-24 Thread Tony Wong
need? On Friday, October 23, 2020 at 8:28:52 PM UTC-7 Tony Wong wrote: > > How do I change the root password on all esxi hosts with a pb? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] change root password - ned help

2020-10-26 Thread Tony Wong
inventory file [esx] esx1 esx2 esx3 [esx:vars] ansible_python_interpreter=/usr/bin/python3 - answer file esxi_hostname: '{{ inventory_hostname }}' esxi_root_user: 'root' esxi_root_pass: 'xxx' new_esx_local_root_user: 'root'

[ansible-project] Re: change root password - ned help

2020-10-26 Thread Tony Wong
rname: "root" password: "xxx!" local_user_name: "root" local_user_password: "yyy" state: present validate_certs: no On Monday, October 26, 2020 at 10:34:51 AM UTC-7 Tony Wong wrote: > > inventory file > >

Re: [ansible-project] Re: need a playbook to change esxi root pass

2020-10-26 Thread Tony Wong
rg wrote: > I think you need to run this against localhost (i.e. the controlnode) > as this is where you have pyvmomi installed. > The ESXi host name should go as the argument in the task itself. > > > On Sun, 25 Oct 2020 at 17:51, Tony Wong wrote: > > > > but I ha

[ansible-project] Re: remove mysql

2020-07-15 Thread Tony Wong
On Wed, Jul 15, 2020 at 9:55 AM Tony Wong wrote: > this was the original install and I am just trying to reverse the installs >> > > --- > - hosts: all > become: true > vars_files: > - vars/default.yml > tasks: > - name: Install prerequisites >

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread Tony Wong
y, July 20, 2020 at 8:58:20 AM UTC-6, Tony Wong wrote: >> >> I setup a few vagrant vms and I ccan ssh to them from vagrant ssh hostname >> >> >> but when i run ansible -m ping -i inventory app >> >> it keeps saying host key verification failed and prompts me

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread Tony Wong
agrant@**192.168.0.183*"? If you can > ssh to the managed nodes using that private key and the inventory file is > properly configured to use it, then Ansible should be able to authenticate > as well. > > On Monday, July 20, 2020 at 10:01:44 AM UTC-6, ej wrote: >> >> From

[ansible-project] installing/upgrading vmwasre tools windows

2020-08-11 Thread Tony Wong
can someone help me improve this playbook. downloading the executable for each vm is not what i want to do --- - name: testing win_get_url hosts: all tasks: - name: Create Directory if not exist win_file: path: C:\temp state: directory - name: Download exe to

[ansible-project] vmware tools update.completed but shows failed status

2020-07-06 Thread Tony Wong
I got following to update vmware tools on windows vm --- - name: testing win_get_url hosts: all tasks: - name: Create Directory if not exist win_file: path: C:\temp state: directory - name: Download exe to winbox win_get_url: url:

[ansible-project] multithread ansible

2020-07-06 Thread Tony Wong
Can ansible do multithread and update all my VMwarte tools all at the same time or does it have to be one by one (one after another) in the host list? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] remove mysql

2020-07-15 Thread Tony Wong
trying to remove mysql from a previous install -- - hosts: all become: true vars_files: - vars/default.yml tasks: - name: Uninstall MySQL packages. apt: name={{ item }} state=absent with_items: - mysql-server - mysql-client but not working [Uninstall MySQL

[ansible-project] Re: remove mysql

2020-07-15 Thread Tony Wong
> > this was the original install and I am just trying to reverse the installs > --- - hosts: all become: true vars_files: - vars/default.yml tasks: - name: Install prerequisites apt: name={{ item }} update_cache=yes state=absent force_apt_get=yes loop: [ 'aptitude' ]

Re: [ansible-project] Failed to lock apt fgor exclusive operation

2020-07-11 Thread Tony Wong
how do I not have to enter my vault password? -- - hosts: all become: yes vars_files: - ~/ansible/vault.yml vars: ansible_become_pass: '{{my_become_pass}}' tasks: - name: Installs nginx web server apt: name: apache2 state: present update_cache: true

[ansible-project] create role or just use playbook

2020-07-12 Thread Tony Wong
do I create roles with ansible-galaxy or just use playbook? I got a playbook to install nginx --- - hosts: lanhosts become: yes vars_files: ~/ansible/vault.yml vars: ansible_become_pass: '{{my_become_pass}}' tasks: - name: Installs nginx web server apt: name: nginx

[ansible-project] Failed to lock apt fgor exclusive operation

2020-07-11 Thread Tony Wong
I am trying to install httpd on a ubuntu server but keep getting this error [image: image.png] [image: image.png] any idea? -- 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

Re: [ansible-project] Failed to lock apt fgor exclusive operation

2020-07-11 Thread Tony Wong
< antony.st...@ansible.open.source.it> wrote: > On Saturday 11 July 2020 at 17:13:25, Tony Wong wrote: > > > I am trying to install httpd on a ubuntu server but keep getting this > error > > Obvious question, but have you checked whether any other process happens > to be >

  1   2   3   >