[ansible-project] RDS instance snapshot and restore

2016-10-13 Thread Tony
sh the rds instance. Anybody can help me? Thanks Tony -- 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.

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-20 Thread Tony Kinsley
les I gave. My hope is that this module could be one day included in the core Ansible project. Let me know what you think. Tony On Tuesday, August 5, 2014 1:53:03 PM UTC-7, Jamal B wrote: > > Hi, is there a chance that cloning will be added to the vsphere_guest > module in an upcom

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-20 Thread Tony Kinsley
sort of thing? >> How would you extend to do that? >> >> kesten >> >> >> On Wed, Aug 20, 2014 at 7:18 PM, Tony Kinsley > > wrote: >> >>> I actually recently got approval to release a module I wrote to manage >>> vsphere. You can fin

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-20 Thread Tony Kinsley
> wrote: > >> Can I ask what's intended to be different from the module we already have >> in core? >> >> http://docs.ansible.com/vsphere_guest_module.html >> >> >> >> >> On Wed, Aug 20, 2014 at 9:27 PM, kesten broughton > >

[ansible-project] Re: vmware/esx/vsphere module - planning

2014-08-21 Thread Tony Kinsley
s pysphere to do this, it > would be nice to have this built in to the ansible module - I'm struggling > to work out how to do this. Tony would your module handle this? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" gro

[ansible-project] Gathering Facts Hangs after Reboot

2014-11-01 Thread Tony Kinsley
we have an upstart script applying our rules on boot. Recently we have been tweaking other startup scripts so I think we must have changed our startup order enough that the iptables rules are getting applied at the perfect time. I don't know I really cannot explain the issue any other

Re: [ansible-project] Gathering Facts Hangs after Reboot

2014-11-01 Thread Tony Kinsley
t;sleep" in > there? > > The wait_for module is frequently not enough to wait for a reboot because > SSH isn't ready (though this isn't a hang scenario, but a connection > failure), for instance. > > > > On Sat, Nov 1, 2014 at 3:45 AM, Tony Kinsley &

Re: [ansible-project] Help with Idempotent lineinfile regex

2014-04-06 Thread Tony Marin
state=present I have tried several approaches but none have been successful. I would appreciate any light to achieve it. BR, Tony -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiv

Re: [ansible-project] Inserting an entire block of configuration using lineinfile

2014-04-09 Thread Tony Marin
You can try to loop using with_items: and storing the regexs, lines, etc in variables. On 09/04/14 16:49, Michael Baydoun wrote: I need to insert many lines of configuration and must use lineinfile or something similar. The particular application in question also writes changes over time to

Re: [ansible-project] Two remote users one for production and one from staging

2014-05-18 Thread Tony Marin
section. Br, Tony On 18/05/14 07:44, raul rodriguez wrote: Hi there, I've been playing with ansible for the last month, and now I finally have the opportunity to provision our small cluster with it. Bye bye puppet. So far the instructions are pretty clear. But I have some questions on

Re: [ansible-project] Prevent executing a role more than once

2014-07-17 Thread Tony Marin
il Signature | Swiss Mobility Solutions a Gemalto company Swiss Mobility Solutions <http://www.swissmobilitysolutions.com/> Tony Marin DevOps Manager Swiss Mobility Solutions a Gemalto Company Mobile+34 637402568 Office Telephone+34 966370055 Skypeantonymcs LocationAv. Locutor Vicente Hi

Re: [ansible-project] Re: Starting Openstack VMs in parallel

2014-07-18 Thread Tony Kinsley
m definitely open to other ideas. My goal is to be able to provision a scalability test environment so I am expecting to be provisioning 500 VMs in a private Openstack network. Tony On Thursday, July 17, 2014 7:19:40 AM UTC-7, Kurt Yoder wrote: > > I forgot to include a critical piece of thi

Re: [ansible-project] Re: How to detect why Ansible playbook hangs during execution

2014-07-24 Thread Tony Marin
ended possibilities. Br, Tony On 22/07/14 23:41, Michael Palumbo wrote: So there is no solution to avoid being stuck on the following? It happens to me often when I am upgrading the system! - name: upgrade all safe packages sudo: yes apt: upgrade=safe Is there at least a way to see the progr

[ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-07-22 Thread Tony Reveal
Did you ever find a fix for this? I'm seeing the same error when connecting to an ASA 5505. On Wednesday, June 1, 2016 at 1:59:34 AM UTC-5, Ludi Fang wrote: > > *I could login the cisco device with SSH and run the show version > successfully.* > > ---

[ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-07-23 Thread Tony Reveal
erminal pager 0". So naturally with terminal length 0 is executed, iOS generates an error, and execution of the playbook is halted. On Friday, July 22, 2016 at 12:09:27 PM UTC-5, Tony Reveal wrote: > > Did you ever find a fix for this? I'm seeing the same error when >

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-07-23 Thread Tony R
etwork/asa) > I would recommend using those for management of ASA devices. > > On Fri, Jul 22, 2016 at 12:25 PM, Tony Reveal wrote: > >> Did you ever find a fix for this? I'm seeing the same error when >> connecting to an ASA 5505. >> >> >>

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-07-23 Thread Tony R
ygada wrote: > There are now ASA specific modules available in extras ( > https://github.com/ansible/ansible-modules-extras/tree/devel/network/asa) > I would recommend using those for management of ASA devices. > > On Fri, Jul 22, 2016 at 12:25 PM, Tony Reveal wrote: > >> Did

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-07-23 Thread Tony Reveal
es-extras/tree/devel/network/asa) > I would recommend using those for management of ASA devices. > > On Fri, Jul 22, 2016 at 12:25 PM, Tony Reveal > wrote: > >> Did you ever find a fix for this? I'm seeing the same error when >> connecting to an ASA 5505. >&

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-07-31 Thread Tony R
Yep, I did the same thing. I haven't had the chance to try running it to see if I got any errors. On Thu, Jul 28, 2016 at 9:53 AM, Brandon wrote: > I've found that by copying and modifying ios.py in > ../ansible/module_utils/ and then pointing ios_template to this new module > its easy to chang

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-07-31 Thread Tony R
Also, just FYI - according to the REST API documentation, the ASA REST API is not supported with the ASA 5505. On Thu, Jul 28, 2016 at 1:43 PM, Tony R wrote: > Yep, I did the same thing. I haven't had the chance to try running it to > see if I got any errors. > > On Thu, Jul

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-08-04 Thread Tony R
evel and not ready for > production use yet (as in still be tested) but going down the path of force > fitting ios_command to fill that role is no more or no less ready for > production as it isn't tested against ASA devices > > On Fri, Jul 22, 2016 at 5:54 PM, Tony Reveal wrote: &g

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-08-04 Thread Tony R
A YAML parser like http://yaml-online-parser.appspot.com/ is super > helpful in debugging little syntax things like that sometimes. > > > > On Thursday, August 4, 2016 at 11:45:33 AM UTC-4, Tony Reveal wrote: > >> Well I apologize. I found an ASA module that uses the REST

[ansible-project] Best method of storing shell output to variable to use on other hosts?

2016-08-06 Thread Tony Owens
I'm looking for some tips on the best way to store a variable persistently across all hosts or multiple plays. I am attempting to create a docker swarm manager using something similar to this: 1. - hosts: swarm-init 2. gather_facts: no 3. tasks: 4. - shell: docker swarm init 5.

Re: [ansible-project] Best method of storing shell output to variable to use on other hosts?

2016-08-07 Thread Tony Owens
e playbook execution failed Notifying upstream projects of job completion Finished: FAILURE On Saturday, August 6, 2016 at 11:23:17 PM UTC-5, Stephen Granger wrote: > > http://docs.ansible.com/ansible/set_fact_module.html > > - name: set fact from hosts output > set_fact:

Re: [ansible-project] Best method of storing shell output to variable to use on other hosts?

2016-08-07 Thread Tony Owens
ay that is causing me to have to replace those characters. On Sunday, August 7, 2016 at 3:31:01 PM UTC-5, Tony Owens wrote: > > Thanks for the tip. I am much closer but I'm getting some undesirable > characters added to the var named "key" I'm setting. > > >

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-08-08 Thread Tony R
OK, any other ideas? I cloned the repository. I edited ansible.cfg. I also tried the --module-path command line parameter. But all I get is this error about not being able to find the asa_command module: TASK [asa_command] * fatal: [a

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-08-09 Thread Tony R
You're right, I'm not running from devel. I'm running Latest Release from Apt. On Aug 9, 2016 7:50 AM, "Peter Sprygada" wrote: > can you paste a copy of ansible --version into this thread? I suspect you > are not running the latest version from devel > >

Re: [ansible-project] Re: ansible 2.0.1.0 run show version with Cisco ASA-55x0

2016-08-09 Thread Tony R
Yes I see the instructions on how to install. I've done the install of the latest release from Apt a few times. And I've done an install of the latest devel once. So what is everyone saying that asa_command is only supported with the latest devel? On Aug 9, 2016 10:43 AM, "jean-christophe m

[ansible-project] Delegation of plays

2015-09-15 Thread Tony Yarusso
So, for both security and other management reasons, we have several (currently 12) separate "environments", firewalled off from each other, each with their own Ansible server. That's fine for most things, but certain one-off tasks (eg. changing my password) are a pain, since I have to do it 12

Re: [ansible-project] Delegation of plays

2015-09-23 Thread Tony Yarusso
Sounds like we'll need to a) rework our inventory a bit, and b) wait for v2.0 for that to work, but could be an option. -- 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

[ansible-project] passing variables to docker module

2015-10-02 Thread Tony Owens
Any tips on reading in the group_vars and making them available to the docker module via "env"? I have searched for examples. I know that i can call out key:values. I don't know if i'm missing something for using group_vars with docker run and ansible? -- You received this message because y

[ansible-project] Re: passing variables to docker module

2015-10-02 Thread Tony Owens
com/towens/hello:latest ports: 9080:8080 state: reloaded env: DOCKER_ENV: DEV any tips on doing this more dynamically would be appreciated. On Friday, October 2, 2015 at 9:03:25 AM UTC-5, Tony Owens wrote: > > Any tips on reading in the group_vars and making them

[ansible-project] Re: passing variables to docker module

2015-10-02 Thread Tony Owens
On Friday, October 2, 2015 at 9:15:45 AM UTC-5, Tony Owens wrote: > > As an example. I know that i can include variables like this: > >- name: run hello docker container > docker: >docker_api_version: 1.18 >name: hello >registry: "d

[ansible-project] Re: loop over host group to create string

2015-11-08 Thread Tony Kinsley
his out myself but I think thats correct. Tony On Thursday, November 5, 2015 at 2:23:38 PM UTC-8, Roy wrote: > > I have following host group > > [zookeeper] > zk001.abc.cc zookeeper_myid=1 > zk002.abc.cc zookeeper_myid=2 > zk003.abc.cc zookeeper_myid=3 > > > I want

Re: [ansible-project] include: "{{ ansible_os_family }}.yml" not working

2015-01-08 Thread Tony Kinsley
It looks like you are trying to dynamically include a task file. I am pretty sure that is not possible. You can only dynamically include vars files. I have always seen includes coupled with when statements when you need to conditionally include a task file. If you want to run multiple sets of

[ansible-project] Module Suffix's and custom windows modules

2015-01-08 Thread Tony Kinsley
ether this is expected and when to expect to require a suffix and when not to expect to need a suffix. Previously I was running ansible version 1.8. Thanks, Tony -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this g

Re: [ansible-project] Re: vmware/esx/vsphere module - planning

2015-02-25 Thread Tony Kinsley
o when you see a backtrace and a line number it matches up with the module itself. Seeing the issue at line number 2491 also makes me think there might be something else going on. Let me know how it goes. Tony On Wed, Feb 25, 2015 at 4:05 AM, wrote: > Hi Tony, > > I was playing with vsphe

[ansible-project] Post json data with URI module

2015-03-16 Thread Tony Kinsley
I am trying to post a variable that gets defined during my playbook as json to a webservice. Unfortunately I have not been able to get the URI module to post valid json. - name: lookup act_transaction in database mongo_query: > host={{ams_ip}} user=user password={{pass}}

[ansible-project] Registering returns to a dictionary attribute

2015-04-15 Thread Tony Yarusso
So, I have a dictionary variable containing information about all of my users, like this: user_dictionary: bjones: realname: Bob Jones uniqueid: 1007 status: active notes: Database consultant Part of my playbook changes users' UIDs to make sure they're consistent across all of

[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] Re: ansible updating vmware tools on windows vms

2020-04-12 Thread Tony Wong
ot; datacenter: "{{ datacenter_name }}" 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

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

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 unsu

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

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

2020-04-13 Thread Tony Wong
when i run that it gave me govc: please specify a datacenter tony@ubuntu:~/ansible-vmware/ansible-add-esxi-host$ govc about Name: VMware vCenter Server Vendor: VMware, Inc. Version: 6.7.0 Build:15976728 OS type: linux-x64 API type: VirtualCenter API version

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

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.

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

2020-04-18 Thread Tony Wong
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' ERR

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

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

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

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-22 Thread Tony Wong
my ansible version tony@ubuntu:~/ansiblework$ ansible --version ansible 2.9.0 config file = /home/tony/ansiblework/ansible.cfg configured module search path = [u'/home/tony/ansiblework/library'] ansible python module location = /home/tony/.local/lib/python2.7/site-packag

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 to

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

[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: 'admin

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 Ne

[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 ansible-project+unsubscr...@googlegroups.com.

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

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] installing windows updates on windows hosts

2020-05-13 Thread Tony Wong
ERROR! 'win_updates' is not a valid attribute for a Play The error appears to be in '/home/tony/windows/install_windows_updates.yml': line 2, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: --- - name:

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": false

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

[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: (('Unspec

[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

[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] 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 ansible-project

[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 10:

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

2020-05-17 Thread Tony Wong
. The error was: error while evaluating conditional (update_result.reboot_required == true): 'update_result' is undefined\n\nThe error appears to be in '/home/tony/windows/install_windows_KBx_updates.yml': line 16, column 7, but may\nbe elsewhere in the file depending on

[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

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"). > >

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

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

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

2020-05-19 Thread Tony Wong
cting 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 : > >

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

2020-05-24 Thread Tony Wong
"] delegate_to: localhost register: vm_info with_items: "{{ vm_list }}" - debug: msg: "{{ vm_list }}" tony@ubuntu:~/ansiblework$ tony@ubuntu:~/ansiblework$ tony@ubuntu:~/ansiblework$ tony@ubuntu:~/ansiblework$ tony@ubuntu:~/ansiblework$ ansible-pla

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

2020-05-24 Thread Tony Wong
failed=0 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 >

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

2020-05-24 Thread Tony Wong
tony@ubuntu:~/ansiblework$ ansible-playbook vmware_tools.yml -vvv ansible-playbook 2.9.0 config file = /home/tony/ansiblework/ansible.cfg configured module search path = [u'/home/tony/ansiblework/library'] ansible python module location = /home/tony/.local/lib/python2.7/site-packag

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
maybe I am missing krb? tony@ubuntu:~/windows$ sudo apt install -y krb5-user libpam-krb5 libpam-ccreds auth-client-config Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an

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] 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
=2changed=0 unreachable=0failed=1 skipped=0rescued=0ignored=0 tony@ubuntu2:~/windows$ cat download.yml --- - name: testing win_get_url hosts: all tasks: - name: Create Directory if not exist win_file: path: c:\temp state: directory -

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] Vm mount iso and install vmware tools

2020-05-26 Thread Tony Wong
any idea what this error is? TASK [Install Vmware tools Silent] task path: /home/tony/windows/download.yml:15 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows

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 vm_tools

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

2020-05-26 Thread Tony Wong
t.com/vmware/command-to-do-a-complete-vmware-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 manuall

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

2020-05-26 Thread Tony Wong
] ** task path: /home/tony/windows/download.yml:2 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/setup.ps1 Pipelining is enabled. ESTABLISH WINRM CONNECTION FOR USER: adm-...@wsgr.com on PORT 5986

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

2020-05-26 Thread Tony Wong
ok I got it working now with win_command but still having some errors TASK [Install Vmware tools Silent] ** task path: /home/tony/windows/download2.yml:15 Using module file /usr

  1   2   3   4   5   >