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

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

2020-06-01 Thread Tony Wong
mp-1591051343.05-86141275342768 `" ) && sleep 0' <127.0.0.1> EXEC /bin/sh -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,

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

2020-06-02 Thread Tony Wong
*** >>> > task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:6 >>> > <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: tony >>> > <127.0.0.1> EXEC /bin/sh -c 'echo ~tony && sleep

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

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

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

[ansible-project] how do i setup a vault password for administraator@vsphere.local

2020-06-05 Thread Tony Wong
How do I setup a vault password for user administrator@vsphere.local? -- 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...@googlegroup

[ansible-project] ansible-role-vcsa

2020-06-05 Thread Tony Wong
does anyone used this to deploy vcsa? \ -- 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. To view this discussion

[ansible-project] windows update playbook failed

2020-06-06 Thread Tony Wong
I brought up a new 2012 server and decided to use anisble to patch it. but it failed on some patches fatal: [vasvw-winpsctst]: FAILED! => { "changed": true, "failed_update_count": 0, "filtered_updates": { "2221dd34-39bb-4f16-b320-be49fe4a6b95": { "categories": [

[ansible-project] Re: windows update playbook failed

2020-06-06 Thread Tony Wong
also what is the difference with having reboot: yes vs - name: reboot host if required win_reboot: when: update_result.reboot_required On Sat, Jun 6, 2020 at 7:43 AM Tony Wong wrote: > I brought up a new 2012 server and decided to use anisble to patch it. > &g

Re: [ansible-project] Re: windows update playbook failed

2020-06-06 Thread Tony Wong
Thank you What else can I add to this playbook? On Sat, Jun 6, 2020 at 2:23 PM Jordan Borean wrote: > It didn’t fail on any patches, the ones listed were filtered because they > didn’t match any of the categories you listed in the task. > > The difference between reboot: yes and win_reboot is t

[ansible-project] deploy VM from template and customize guest

2020-06-07 Thread Tony Wong
I am trying to deploy VM from VM template with ansible. I got the playbook to deploy the VM. but how do I customize the guest: I need to 1. rename the guest name to VM name 2. join domain 3. put it in an specific OU any udea? -- You received this message because you are subscribed to the Goog

Re: [ansible-project] deploy VM from template and customize guest

2020-06-08 Thread Tony Wong
I got a customization template in vcenter. how do I specify using that template. Also the template looks like will override my static IP settings on my Vms. On Sun, Jun 7, 2020 at 3:31 PM Dave York wrote: > Ive done this by using the customization argument of the vmware_guest > module to join th

Re: [ansible-project] deploy VM from template and customize guest

2020-06-08 Thread Tony Wong
for ansible, is there a reverse order to detroy the vms after the vm playbook has been run like terraform? Or do I need to create another playbook to destroy the vms? On Mon, Jun 8, 2020 at 6:59 AM Tony Wong wrote: > I got a customization template in vcenter. how do I specify using t

Re: [ansible-project] deploy VM from template and customize guest

2020-06-08 Thread Tony Wong
; num_cpus: '{{ vmware_cpu }}' > scsi: paravirtual > hotadd_cpu: True > hotremove_cpu: True > hotadd_memory: True > boot_firmware: "efi" > networks: > - name: '{{ vmware_network }}' > ip: 

Re: [ansible-project] deploy VM from template and customize guest

2020-06-09 Thread Tony Wong
d Foley was referencing. > > Check out customization_spec within the vmware_guest module > https://docs.ansible.com/ansible/latest/modules/vmware_guest_module.html > > You can use the method im using OR you can call customization_spec > > On Monday, June 8, 2020 at 10:06:57 A

Re: [ansible-project] deploy VM from template and customize guest

2020-06-09 Thread Tony Wong
dns_servers: - '{{ guest_dns_server }}' domain : '{{ guest_domain_name }}' hostname: '{{ inventory_hostname }} I guess I cannot use the values in my roles file when using customization_spec? On Tue, Jun 9, 2020 at 7:16 AM Tony Wong wrote: > hi > > for

Re: [ansible-project] Resizing the Vmware VMDK Through Ansible script

2020-06-10 Thread Tony Wong
Interested in this too. I got a windows VM with only C drive. I want to resize from 60GB to 70GB how do i set up the playbook On Tue, Jun 9, 2020 at 10:18 PM Abhijeet Kasurde wrote: > What kind of tasks do you need to run on the OS level? You can either use > `vmware_vm_shell` to run command o

[ansible-project] VM not joining domain

2020-06-10 Thread Tony Wong
any idea why my Vm is not joining domain? Credentials are correct --- # Deploy a VM from a template using Ansible 'vmware_guest' module - name: Deploy VM from template vmware_guest: hostname: '{{ deploy_vsphere_host }}' username: '{{ deploy_vsphere_user }}' password: '{{ deploy_vsphe

Re: [ansible-project] VM not joining domain

2020-06-11 Thread Tony Wong
does this mean anything? "invocation": { "module_args": { "annotation": "Master #1", "cdrom": [], "cluster": "RW-VA", "convert": null, "customization": { "dns_servers": [ "VALUE_SPECIFIED_IN_N

Re: [ansible-project] VM not joining domain

2020-06-11 Thread Tony Wong
looks like the join account keeps locking out my domain account. any idea why its doing that? The password is correct. On Thu, Jun 11, 2020 at 7:35 AM Tony Wong wrote: > does this mean anything? > > > "invocation": { > "module_args": { >

[ansible-project] domainadminpass

2020-06-11 Thread Tony Wong
how do I specify a dominadminpass password to a vault file? -- 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. To v

Re: [ansible-project] deploy VM from template and customize guest

2020-06-11 Thread Tony Wong
can i get some help w this? My account to join the domain keeps getting locked out. This password has spaces in it like this "This is my pa$$w0rd!" but account keeps getting locked out On Tue, Jun 9, 2020 at 8:31 AM Tony Wong wrote: > ok I was able to use the customization_spe

[ansible-project] vcsa deploy error

2020-06-14 Thread Tony Wong
I am trying to deploy vcsa with this role vcsa-deploy - repo_dir: '/opt/repo' vcsa_iso: 'VMware-VCSA-all-6.7.0-9451876.iso' vcsa_task_directory: '/etc/ansible/roles/vcsa-deploy/tasks' ovftool: '/mnt/iso/vcsa/ovftool/lin64/ovftool' vcsa_ova: 'vcsa/VMware-vCenter-Serve

[ansible-project] offending line appears to be state: directory

2020-06-14 Thread Tony Wong
any idea what is wrong with my playbook here? - name: Retrieve info about the mount directory stat: path: "{{ mount_dir_path }}" register: mount_dir_stat_first tags: - prereqs # If the mount directory doesn't already exist it is created - name: Create the mount directory become

[ansible-project] --ask-become-pass

2020-06-14 Thread Tony Wong
how do i store the --ask-become-password for sudo to a vaults file? -- 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.c

[ansible-project] The ipaddr filter requires python's netaddr be installed on the ansible controller"

2020-06-14 Thread Tony Wong
any idea what this error is? TASK [vcsa-deploy : Create a task from the template to deploy VCSA with embedded PSC] ** task path: /home/tony/ansible-vmware/vsphere-sddc/playbooks/roles/vcsa-deploy/tasks/deploy.yml:25 <127.0.0.1> ESTABLISH LO

Re: [ansible-project] The ipaddr filter requires python's netaddr be installed on the ansible controller"

2020-06-14 Thread Tony Wong
ilters_ipaddr.html > > On Sun, Jun 14, 2020 at 12:13 PM Tony Wong wrote: > >> any idea what this error is? >> >> >> TASK [vcsa-deploy : Create a task from the template to deploy VCSA with >> embedded PSC] >> *

[ansible-project] ansible-playbook --ask-become-user in vault file?

2020-06-14 Thread Tony Wong
can i put a sudo password and other passwords together in a vault file? when i run thios playbook, i want it to read the vault file w/o asking me for the password anymore ansible-playbook --ask-vault-pass vcenter_sddc_deploy.yml --ask-become-pass -vvv -- You received this message because you

[ansible-project] vmeware_guest customization runonce

2020-06-16 Thread Tony Wong
how to enable winrm over https with runonce ? -- 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. To view this discu

[ansible-project] installing ansible in isolated virtual env

2020-06-16 Thread Tony Wong
Is there a way to install ansible on osX in an isolated virtual environment? without having to setup a ubuntu VM? I dont want the ansible binaries or whatever software it installs on osx to interfere with my working environment -- You received this message because you are subscribed to the Googl

Re: [ansible-project] installing ansible in isolated virtual env

2020-06-16 Thread Tony Wong
5 2019, 17:14:41) [Clang > 11.0.0 (clang-1100.0.33.8)] > > > On Tue, 16 Jun 2020 at 15:58, Tony Wong wrote: > > > > Is there a way to install ansible on osX in an isolated virtual > environment? without having to setup a ubuntu VM? > > > > I dont want the

Re: [ansible-project] installing ansible in isolated virtual env

2020-06-16 Thread Tony Wong
ok fixed the issue. On Tue, Jun 16, 2020 at 7:36 AM Tony Wong wrote: > Thanks > > but i got this > > NAR33051M:Resources twong$ sudo python3 -m venv venv > Password: > Error: [Errno 1] Operation not permitted: > '/System/Library/CoreServices/RemoteManagement/AR

Re: [ansible-project] installing ansible in isolated virtual env

2020-06-16 Thread Tony Wong
] On Tue, Jun 16, 2020 at 8:07 AM Tony Wong wrote: > ok fixed the issue. > > > > On Tue, Jun 16, 2020 at 7:36 AM Tony Wong wrote: > >> Thanks >> >> but i got this >> >> NAR33051M:Resources twong$ sudo python3 -m venv venv >> Password: >> E

[ansible-project] trying to enable winrm over https on new VM

2020-06-17 Thread Tony Wong
I am clining VM with the vmware_guest module. it works fine and join domain. but I need to enable winrm over https. is there way to do this from the runonce or predeployment tasks? I cant even copy a script over since winrm over https is not enabled -- You received this message because you ar

[ansible-project] error creating a directory

2020-06-28 Thread Tony Wong
--- - name: testing win_get_url hosts: all tasks: - name: Create Directory if not exist win_file: path: c:\temp state: directory TASK [Create Directory if not exist] *

Re: [ansible-project] error creating a directory

2020-06-28 Thread Tony Wong
is it the Capital C? just tied and same error On Sun, Jun 28, 2020 at 11:03 AM Tej Singh Rana wrote: > You have to use --> path: C:\temp > > On Sun, Jun 28, 2020 at 11:20 PM Tony Wong wrote: > >> --- >> - name: testing win_get_url >> hosts: all >> ta

[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: https://packages.v

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

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

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 >

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 h

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

[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' ] #A

[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: remove mysql

2020-07-16 Thread Tony Wong
pache2', 'mysql-server', 'python3-pymysql', 'php', 'php-mysql', 'libapache2-mod-php' ] On Wed, Jul 15, 2020 at 12:34 PM Stefan Hornburg (Racke) wrote: > On 7/15/20 6:55 PM, Tony Wong wrote: > > this was the original install and I am

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

2020-07-20 Thread Tony Wong
Monday, 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 promp

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

2020-07-20 Thread Tony Wong
ory file. > > Also, try running "*ansible -m ping -i inventory app -vvv*" so we can see > more detail. > > And, can you be sure that the private key file is good by doing "*ssh -i > ~/.vagrant.d/insecure_private_key vagrant@**192.168.0.183*"? If you can > ssh to

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

2020-07-20 Thread Tony Wong
e } 192.168.0.151 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: tonywong@192.168.0.151: Permission denied (publickey,password).", "unreachable": true } My hosts file ansible_ssh_pass=vagrant

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

2020-07-20 Thread Tony Wong
. >> >> >> [servers] >> 192.168.0.127 >> 192.168.0.151 >> >> [servers:vars] >> ansible_ssh_pass=vagrant >> ansible_ssh_private_key=~/.vagrant.d/insecure_private_key >> >> >> >> >> >> On Monday, July 20, 2020 a

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

2020-07-20 Thread Tony Wong
thanks for catching that. now getting this 192.168.0.127 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 192.168.0.127 port 22: Operation not permitted", "unreachable": true } 192.168.0.151 | UNREACHABLE! => { "changed": fa

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

2020-07-21 Thread Tony Wong
ure you want to continue connecting (yes/no/[fingerprint])? below is my hosts file why is it asking me for this? [servers] 192.168.0.99 [servers:vars] ansible_ssh_user=vagrant ansible_ssh_private_key=~/.vagrant.d/insecure_private_key On Mon, Jul 20, 2020 at 10:05 PM Tony Wong wrote

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

2020-07-21 Thread Tony Wong
ant@192.168.0.99: Permission denied (publickey,password).", "unreachable": true } On Tue, Jul 21, 2020 at 7:03 AM Tony Wong wrote: > I dont understand now I am seeing this > > > (ansible) Tonys-MacBook-Pro:ansible tonywong$ ansible -m ping -i hosts > servers >

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

2020-07-21 Thread Tony Wong
t;'"'' <192.168.0.99> (255, b'', b'vagrant@192.168.0.99: Permission denied (publickey,password).\r\n') 192.168.0.99 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: vagrant@192.168.0.99

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

2020-07-21 Thread Tony Wong
i checked my insecure_private_key and it works fine by logging via ssh ssh -i ~/.vagrant.d/insecure_private_key vagrant@192.168.0.99 but ansible is not working On Tue, Jul 21, 2020 at 7:10 AM Tony Wong wrote: > (ansible) Tonys-MacBook-Pro:ansible tonywong$ ansible -m ping -i hosts all >

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

2020-07-21 Thread Tony Wong
ok finally got it working I am on ansible 2.9 and had to change ansible_ssh_user to ansible_user and ansible_ssh_private_key to ansible_ssh_private_key_file On Tue, Jul 21, 2020 at 8:00 AM Tony Wong wrote: > i checked my insecure_private_key and it works fine by logging via ssh >

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

2020-07-21 Thread Tony Wong
it goes through. why? On Tue, Jul 21, 2020 at 8:09 AM Tony Wong wrote: > ok finally got it working > > I am on ansible 2.9 and had to change > > ansible_ssh_user to ansible_user > > and > > ansible_ssh_private_key to > > ansible_ssh_private_key_file > > > &

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

2020-07-21 Thread Tony Wong
ok got it with this line ansible_ssh_common_args='-o StrictHostKeyChecking=no' On Tue, Jul 21, 2020 at 8:52 AM Tony Wong wrote: > I am still getting this on first connect > The authenticity of host '192.168.0.97 (192.168.0.97)' can't be > established. &

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

[ansible-project] turn off windows firewall with ansible

2020-08-15 Thread Tony Wong
I got winrm over https configured via powershell on some remote hosts but looks like windows firewall is on and blocking port 5986. how do i turn off the firewall remotely? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from t

[ansible-project] kerberos error when connecting to windows machine

2020-08-16 Thread Tony Wong
keep getting this error on a windows machine | UNREACHABLE! => { "changed": false, "msg": "kerberos: ('Connection aborted.', error(104, 'Connection reset by peer'))", "unreachable": true any idea? HTTPS is listening on port 5986 already and no firewall blocking -- You received th

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

2020-08-16 Thread Tony Wong
I have same problem. I enabled winrm over https and i can see it listen to 5986. but a simple win_ping is not working On Monday, September 17, 2018 at 2:46:26 PM UTC-7 jbor...@gmail.com wrote: > You need both the hotfix and the registry keys set for the connection to > break like this, having o

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 listen

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

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

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

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

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

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

2020-10-23 Thread Tony Wong
t myesxhost | FAILED! => { "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 gettin

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

2020-10-23 Thread Tony Wong
g callback plugin minimal 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 &

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

2020-10-23 Thread Tony Wong
: "/usr/bin/python" }, "changed": false, "ping": "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

[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
27; what else do i 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 unsubsc

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

2020-10-24 Thread Tony Wong
erpreter" } PLAY RECAP *** esxhost: ok=1changed=0unreachable=0failed=1 skippe

[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

[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 "/tmp/ansible_community.vmware.vmware_local_user_manager_payload_jdgh1vij/ansible_community.vmware.vmware_local_user_manager_payload.zip/ansible_collections/community/vmware/plugins

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

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

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

Re: [ansible-project] ansible group not working

2021-03-08 Thread Tony Wong
yes that was it! Thank you On Mon, Mar 8, 2021 at 8:40 AM Brian Coca wrote: > You probably want to put it in BOTH groups > > > -- > -- > Brian Coca > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe fr

[ansible-project] resolve list of IPs in txt file to DNS

2021-03-10 Thread Tony Wong
how can i use ansible to resolve list of IPs to DNS names? -- 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. To vi

[ansible-project] windows patching playbook

2021-03-22 Thread Tony Wong
i need a windows patching playbook to patch mostly windows servers need to install al critical and security updates and auto reboot also need a report status back on which host failed or what was installed and not installed any idea? -- You received this message because you are subscribed to

[ansible-project] vmware_local_role_manager

2021-04-27 Thread Tony Wong
anyone know how to add a AD group into a local esxi host with administrator role? -- 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..

[ansible-project] Re: vmware_local_role_manager

2021-04-28 Thread Tony Wong
anyone know how to do this? I am trying to add AD user into a local Esxi host with administrator role I looked into vmware_local_role_manager *but dont see option to do it* On Tuesday, April 27, 2021 at 11:31:48 AM UTC-7 Tony Wong wrote: > anyone know how to add a AD group into a local e

[ansible-project] break this up into tasks and roles and variables

2021-08-20 Thread Tony Wong
how do I break this play up into roles/tasks/variables etc --- - hosts: localhost tasks: - name: create s3 bucket s3_bucket: name: ansibletestbucket12345 public_access: block_public_acls: true ignore_public_acls: true block_public_policy: true

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-23 Thread Tony Wong
gt; is not much to break up here > > On Fri, Aug 20, 2021 at 4:58 PM Tony Wong wrote: > > > > how do I break this play up into roles/tasks/variables etc > > > > > > --- > > - hosts: localhost > > tasks: > > - name: create s3 bucket >

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
it is still not working. yaml checker says ok On Tuesday, August 24, 2021 at 5:13:11 AM UTC-7 jruar...@gmail.com wrote: > Remove the leading - character on the - hosts line. > > On Tue, Aug 24, 2021, 13:59 Tony Wong wrote: > >> ok so here is what i have &

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
.legacy.setup\n" } PLAY RECAP **** localhost : ok=0changed=0unreachable=0 failed=1skipped=0rescued=0ignored=0 On Tuesday, August 24, 2021 at 5:29:06 AM UTC

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
i dont have that in my pb. On Tuesday, August 24, 2021 at 6:40:40 AM UTC-7 ra...@linuxia.de wrote: > On 24/08/2021 15:30, Tony Wong wrote: > > > > any idea? why is sudo password needed? > Because you asked for that (become: yes) > > Regards > Racke > > > On

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
ok thanks a lot. finally got it working. On Tuesday, August 24, 2021 at 6:41:25 AM UTC-7 Tony Wong wrote: > i dont have that in my pb. > > On Tuesday, August 24, 2021 at 6:40:40 AM UTC-7 ra...@linuxia.de wrote: > >> On 24/08/2021 15:30, Tony Wong wrote: >> >

Re: [ansible-project] break this up into tasks and roles and variables

2021-08-24 Thread Tony Wong
quick question. is there a way to quickly rollback ? On Tuesday, August 24, 2021 at 7:33:23 AM UTC-7 Tony Wong wrote: > ok thanks a lot. finally got it working. > > On Tuesday, August 24, 2021 at 6:41:25 AM UTC-7 Tony Wong wrote: > >> i dont have that in my pb. >>

[ansible-project] create NFS share on AWS storage gateway with ansible

2021-08-24 Thread Tony Wong
does anyone know if there isa module to create nfs shares on aws storage gateway with ansible? I cannot find in the docs. only s3 buckets and ec2 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiv

[ansible-project] Re: create NFS share on AWS storage gateway with ansible

2021-08-25 Thread Tony Wong
any body know? On Tuesday, August 24, 2021 at 9:06:17 AM UTC-7 Tony Wong wrote: > does anyone know if there isa module to create nfs shares on aws storage > gateway with ansible? > > I cannot find in the docs. only s3 buckets and ec2 > -- You received this message because you

[ansible-project] Re: create NFS share on AWS storage gateway with ansible

2021-08-28 Thread Tony Wong
is ansible not able to create NFS share on aws storage gateway?? On Wednesday, August 25, 2021 at 5:24:10 AM UTC-7 Tony Wong wrote: > any body know? > > On Tuesday, August 24, 2021 at 9:06:17 AM UTC-7 Tony Wong wrote: > >> does anyone know if there isa module to create nfs sha

Re: [ansible-project] Re: create NFS share on AWS storage gateway with ansible

2021-08-28 Thread Tony Wong
yes I can do it manually via aws cli command but how to do it with ansible? On Sat, Aug 28, 2021 at 6:00 AM Antony Stone < antony.st...@ansible.open.source.it> wrote: > On Saturday 28 August 2021 at 14:20:40, Tony Wong wrote: > > > is ansible not able to create NFS share on a

Re: [ansible-project] Re: windows patching playbook

2021-10-18 Thread Tony Wong
i like to know too On Mon, Oct 18, 2021 at 8:17 AM Jitendra Ingale wrote: > In context of this. I would like to ask if I can use Ansible controller to > automate Windows hosts patching ? > > I am trying to understand what all steps I need to consider and if it can > be done without any 3rd party

  1   2   3   >