Guys any help on this ?
On Mon, 13 Apr 2020 at 18:38, Rahul Kumar wrote:
> Hi Ansible Gurus,
> I need some help for some framework designing based on Ansible. I have
> many components and i have maintained ansible role for each component
> deployment in common project.
> Means all components
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:
Best thing you can do to understand how vCenter is organized is using govc
tool:
For example, this is my home lab:
➜ govc about
Name: VMware vCenter Server
Vendor: VMware, Inc.
Version: *6.7.0*
Build:15129973
OS type: linux-x64
API type: VirtualCenter
API
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 host into but its not
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
Hi Tony,
There are two ways of adding an esxi host to vCenter:
- In standalone mode (not part of a vCenter cluster)
- Part of a vCenter cluster
See the following examples:
In standalone mode, first you'll need a host folder to place your esxi
hosts. Bear in mind here that
I'm trying to come up a way to iterate through ansible_mounts and, if one
of the mounts is over 80% used, add that to a list that i can print out
later and possibly email it. Here's what I have so far:
---
- hosts: localhost
gather_facts: no
become: yes
become_method: sudo
pre_tasks:
Hi Tony,
Looking at the Documentation
https://docs.ansible.com/ansible/latest/modules/vmware_host_module.html
- name: Add ESXi Host to vCenter
vmware_host:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datacenter:
I have supplied a completed Playbook for you to use ? what else are you
looking for ?
On Sunday, April 12, 2020 at 11:20:26 PM UTC+1, Tony Wong wrote:
>
> I created a yml file like this. I just need to test it on one vm.
>
> ---
> - hosts all
> gather_facts: false
> connection: local
>
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
Gettign this logs:
host_list declined parsing /etc/ansible/TEMPLATES/Cisco_Telnet as it did
not pass it's verify_file() method
Skipping due to inventory source not existing or not being readable by the
current user
On Monday, April 13, 2020 at 4:37:13 AM UTC-4, Zaldy B wrote:
>
> Hi
Hi Ansible Gurus,
I need some help for some framework designing based on Ansible. I have many
components and i have maintained ansible role for each component deployment
in common project.
Means all components installation/configuration managed by that common
project .
I wanted to bring a
prefixing the whole adhoc line with "ANSIBLE_STRATEGY=free" does the trick!
On Mon, 13 Apr 2020 at 12:46, Dick Visser wrote:
>
> Hi
>
> For simple fire & forget commands with ansible there is no requirement
> to go over the hosts sequentially. Ideally i'd use strategy=free - but
> that doesn't
Hi guys,
Im having a problem when i run one playbook with my role to install and
create a database inside mysql.
The first time i run the playbook it finishes successfully.
But when i run again i get an error saying ansible canot connect to my
database.
although i can connect the database
Hi
For simple fire & forget commands with ansible there is no requirement
to go over the hosts sequentially. Ideally i'd use strategy=free - but
that doesn't seem to be possible with ansible, only with
ansible-playbook?
Any other way to achieve this?
thx
--
Dick Visser
Trust & Identity Service
Hi Ganesh,
Thanks for the reply.
When you say, we can subscribe to the notification using Ansible and not
processing meaning there is no library available for processing? If
required, the Ansible can parse the interested notifications e.g. for
knowing status of the command execution or state
Hi Srinivas,
Sure! I will update you.
This is just weird, I tried it on GNS3 and it is working. but on the prod
itself, it is not.
playbook is just straight forward:
---
- name: Telnet do show version for IOS
hosts: Cisco_Telnet
gather_facts: false
connection: local
tasks:
-
Some time back just to test telnet module, I tried telnet for devices which
had ssh as well as telnet access. However I was not successful and gave up.
If you get this working, kindly reply with the solution.
Thanks
Srinivas.
On Mon, Apr 13, 2020 at 1:44 PM Zaldy B wrote:
> Hi Karl,
>
>
Hi Karl,
Unfortunately, those devices that we have are old and uses telnet :)
But other devices which are SSH enabled are being automated by ansible
On Monday, April 13, 2020 at 4:05:53 AM UTC-4, Karl Auer wrote:
>
> Unless you have some specific reason for wanting to use telnet, the
>
Unless you have some specific reason for wanting to use telnet, the obvious
workaround is to use ssh instead
Regards, K.
On Mon, Apr 13, 2020 at 5:51 PM Zaldy B wrote:
> Hi Karl,
>
> yes, I can connect to the device from my ansible server using telnet. I
> can also connect to the device
I am getting this error:
FAILED! => {"changed": true, "msg": "Telnet action failed: telnet
connection closed", "output": []}
On Monday, April 13, 2020 at 3:07:25 AM UTC-4, Zaldy B wrote:
>
> Hi Experts,
>
> I am just new with this one. I am trying to connect using telnet (ssh has
> no issue)
Hi Karl,
yes, I can connect to the device from my ansible server using telnet. I
can also connect to the device using my putty (outside of ansible) using
telnet.
On Monday, April 13, 2020 at 3:23:36 AM UTC-4, Karl Auer wrote:
>
> Can you connect to your IOS devices normally, i.e. outside
Can you connect to your IOS devices normally, i.e. outside Ansible?
If yes, then I have no idea what's going on, but if not, get that working
first before you try doing it with Ansible.
Off the cuff theory is that the devices do not permit telnet connections...
Regards, K.
On Mon, Apr 13,
What will be the command to pass username and password for both the host
considering none of the host is localhost.
On Saturday, September 24, 2016 at 8:58:31 AM UTC+5:30, Brian Coca wrote:
>
> A playbook can have multiple plays:
>
> - hosts: host_for_play_1
> tasks:
>- debug: msg='play 1
I am getting this when I do -vvv
ansible-playbook 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules',
u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable
Hi Experts,
I am just new with this one. I am trying to connect using telnet (ssh has
no issue) to my IOS devices, but I am getting error when I run my playbook:
--
-
name: Telnet do show version for IOS
hosts: telnet_device
gather_facts: false
26 matches
Mail list logo