Re: [ansible-project] Re: Relation between Ansible and SDN

2020-04-21 Thread Albert Short
Nabil, as Phil has mentioned, Ansible uses modules & depending which vendor's SDN solution you decide to use, you use the appropriate module. You can find quite a few Cisco ACI & MSO modules ofr Ansible 2.9 or like in Cumulus just 1 module. The closest you can get to a 'SDN' generic module

Re: [ansible-project] How to schedule a task which should be run after every 30 mins

2020-04-21 Thread Abhijeet Kasurde
How about writing a shell script with ansible-playbook command, and triggering that every 30 minutes using crontab. On Tue, Apr 21, 2020 at 11:02 AM Samir Kothawade wrote: > Hi, > > I want to execute specified task in ansible playbook after every 30 mins. > Task is not just a command, so "at"

[ansible-project] Need to Deploy OS using ansible playbook

2020-04-21 Thread Pavan Nr
Hi All, any one experimented how to deploy OS using playbook ? how to call WDS Server using ansible playbook? if anyone done , please share me steps. regards, Pavan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] How to schedule a task which should be run after every 30 mins

2020-04-21 Thread Karl Auer
Create a script (e.g. in bash) that does everything you want to do, including run Ansible. Then create a cron-job which runs that script at the intervals you desire. Regards, K. On Tue, Apr 21, 2020 at 3:32 PM Samir Kothawade wrote: > Hi, > > I want to execute specified task in ansible

[ansible-project] Deprecation of merge hash_behavior

2020-04-21 Thread Oxedions Ox
Dear Ansible community, First, I would like to express my thanks for all the work done around Ansible. We are using it each day, and we love it. We even made a whole cluster stack around it! Part is opensource, other parts of this stack are closed and developed by some companies.

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-21 Thread 'Spoonless' via Ansible Project
Hi, So, if I get the output of my yum repolist -v to a json format then I can use the json query in Ansible, like here: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#json-query-filter I guess, Python or jq or something to prep the output in the required format.

[ansible-project] Re: Need to Deploy OS using ansible playbook

2020-04-21 Thread David Foley
When you say deploy an OS: is this a bare-metal Server or a Virtual Machine on vSphere ? On Tuesday, April 21, 2020 at 9:16:13 AM UTC+1, Pavan Nr wrote: > > Hi All, > > any one experimented how to deploy OS using playbook ? > how to call WDS Server using ansible playbook? > > if anyone done ,

[ansible-project] Re: Proxmox VM provisioning with ansible - how to run task on created vm?

2020-04-21 Thread David Foley
Hi I currently have the Following Playbook that creates Windows Virtual Machines: If you need to do other tasks on the Virtual Machine; I'll recommend creating a Pipeline within a CI/CD platform: For Example: I have a number of Tasks - Create Machine - Create AD Object - Join

[ansible-project] Proxmox VM provisioning with ansible - how to run task on created vm?

2020-04-21 Thread Łukasz Boczkaja
Hi, I want to create a role that would do all of this tasks: 1. Create vm from template with preconfigured IP address 2. Modify vm parameters 3. Power up and wait for vm to be network reachable 4. Connect to newly created vm through template hardcoded IP and change its network settings

[ansible-project] Re: Need to Deploy OS using ansible playbook

2020-04-21 Thread David Foley
If the Server is an HP maybe try this Module: https://docs.ansible.com/ansible/latest/modules/hpilo_boot_module.html Or Dell IDrac https://github.com/dell/dellemc-openmanage-ansible-modules On Tuesday, April 21, 2020 at 11:17:10 AM UTC+1, Pavan Nr wrote: > > need to deploy WS2019 OS on

[ansible-project] Re: Need to Deploy OS using ansible playbook

2020-04-21 Thread Pavan Nr
need to deploy WS2019 OS on bare-metal server not in virtual machine On Tuesday, April 21, 2020 at 3:22:05 PM UTC+5:30, David Foley wrote: > > When you say deploy an OS: > > is this a bare-metal Server or a Virtual Machine on vSphere ? > > On Tuesday, April 21, 2020 at 9:16:13 AM UTC+1, Pavan

[ansible-project] Re: Need to Deploy OS using ansible playbook

2020-04-21 Thread Pavan Nr
our server in dell , used below module , it's working fine i have tested already. https://github.com/dell/dellemc-openmanage-ansible-modules /idrac_os_deployment.yml but it will trigger till WinEP , from there we have to do manually ,looking for zero touch deployment scenarios like how we do

[ansible-project] How to extract one attribute from a list of dictionaries

2020-04-21 Thread jean-christophe manciot
Let's suppose the following list of dictionaries: - domain_definition: - name: server11 cluster: cluster1 port: '8080' - name: server12 cluster: cluster2 port: '8090' - name: server21 cluster: cluster3 port: '9080'

[ansible-project] Re: How to extract one attribute from a list of dictionaries

2020-04-21 Thread jean-christophe manciot
I'm using: - ansible 2.9.7 - python 3.8.2 -- 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

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-21 Thread 'Spoonless' via Ansible Project
Trying to get the yum repolist -v data to a json format that I can parse with Ansible is tricky enough for a beginner. On Tuesday, April 21, 2020 at 11:01:00 AM UTC+2, Spoonless wrote: > > Hi, > > So, if I get the output of my yum repolist -v to a json format then I can > use the json query in

[ansible-project] How to replace IP using nios_host_record

2020-04-21 Thread Naveen Chandra Sekhara
As of now we can replace the name only. Is it possible to replace IP on an existing host record? Thanks for your reply -- 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

Re: [ansible-project] How to extract one attribute from a list of dictionaries

2020-04-21 Thread Dick Visser
just to make sure - this is a list of list of dictionaries. If this is your source of truth, and you intend to have a list of dicts, then it could look like this: domain_definition: - name: server11 cluster: cluster1 port: '8080' - name: server12

Re: [ansible-project] How to extract one attribute from a list of dictionaries

2020-04-21 Thread jean-christophe manciot
That's what I meant (just a typo in the structure). > > -- 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

Re: [ansible-project] How to create Multiple Guest Vms Snapshot

2020-04-21 Thread Arvind Kumar
Thank you Abhijeet and team for support and immediate response  Thanks & Regards Arvind Kumar Cell:- 9555962061. *Thanks & Regards* *Arvind Kumar* *Cell:- 9555962061.* On Tue, Apr 21, 2020 at 10:51 AM Abhijeet Kasurde wrote: > with_items is a task level parameter and not

Re: [ansible-project] How to extract one attribute from a list of dictionaries

2020-04-21 Thread Dick Visser
More accurately, the data structure you posted isn't a variable, it's an item from a "upper" list variable - which we don't know the name of. An example: --- - hosts: localhost connection: local gather_facts: no vars: domain_definition: - name: server11 cluster:

Re: [ansible-project] How to extract one attribute from a list of dictionaries

2020-04-21 Thread jean-christophe manciot
Thanks. :-) -- 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 on the web visit

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-21 Thread Kai Stian Olstad
On Tue, Apr 21, 2020 at 12:14:43PM -0700, 'Spoonless' via Ansible Project wrote: > If I am correct, I would need the output from yum repolist -v : > > Loading "fastestmirror" plugin > Loading "langpacks" plugin > Adding en_US.UTF-8 to language list > Config time: 0.008 > Yum version: 3.4.3 >

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-21 Thread 'Spoonless' via Ansible Project
If I am correct, I would need the output from yum repolist -v : Loading "fastestmirror" plugin Loading "langpacks" plugin Adding en_US.UTF-8 to language list Config time: 0.008 Yum version: 3.4.3 Loading mirror speeds from cached hostfile Setting up Package Sacks pkgsack time: 0.008 Repo-id

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Quad Zero
Vivek, Could you actually show that to me in code? I am very new to this. Thank you sir. On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek Kothawale wrote: > > Hi > > You could use variable and reference that variable inside playbook. > I this way you don't have to repeat on call same

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Vivek Kothawale
Hi You could use variable and reference that variable inside playbook. I this way you don't have to repeat on call same path mutiple time instead you can call that variable. Thanks, Vivek On Wed, Apr 22, 2020, 10:14 AM Quad Zero wrote: > G'day all Ansible gurus, > > I am very new to Ansible

[ansible-project] Re: Need to Deploy OS using ansible playbook

2020-04-21 Thread Seth Daemen
Hello Pavan. Ansible is not a bare metal deployment tool. For bare metal you need wds with pxe of iso boot and mdt and then maybe use Ansible for the other tasks. Or make a preconfigured bootable iso or something. Op dinsdag 21 april 2020 14:21:58 UTC+2 schreef Pavan Nr: > > > our server in

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Javi Legido
Good morning. You could concept ansible as the automated execution of commands through SSH connection to the target hosts. If you want to keep your approach you could: 1. Expose the source files through SSHFS 2. Mount on each host above directory All those tasks could be automated through

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Dick Visser
If you are really new then you are better off reading about the basics first, for instance https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html This should give enough inspiration to get going with your task at hand. On Wed, 22 Apr 2020 at 06:53, Quad Zero wrote: >

[ansible-project] How to optimise many hosts which are all localhost?

2020-04-21 Thread Matthew Davis
I have a use case which is a bit different to most, but Ansible seems to do a pretty good job. I'm trying to figure out the best way to leverage Ansible's inherent concurrency for multiple hosts, when deploying to serverless infrastructure, which has no hosts. (Instead just using tasks which do

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Vivek Kothawale
Hi Could you please let me know how you doing it in manually ? Thanks Vivek On Wed, Apr 22, 2020, 10:34 AM Dick Visser wrote: > If you are really new then you are better off reading about the basics > first, for instance > > >

[ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Quad Zero
G'day all Ansible gurus, I am very new to Ansible and I am learning through youtube videos as I am enquiring about this problem. It might be a simple one to some of you guys: So I have multiple servers on my System. I have a VM by the name of YUM which has all the updates (updates folder) on