---
- hosts: all
pre_tasks:
# Task creates a vm through an api. Register output with vm name
- name: Create vm from emplate
command: 'curl https://vm.example.nl/api/create'
delegate_to: localhost
register: ip
# Continue play on newly created vm
- hosts: '{{ ip }}'
# Roles to
instances and a dynamic inventory script :).
- James
On Tuesday, January 20, 2015 at 8:37:03 AM UTC-5, Piet83 wrote:
---
- hosts: all
pre_tasks:
# Task creates a vm through an api. Register output with vm name
- name: Create vm from emplate
command: 'curl https://vm.example.nl
be to deploy your template and then alter the resource
settings one it's available. But this should be added to the module.
I currently don't have access to a rhev/ovirt setup to see what has
changed in the API.
Vincent
On Nov 10, 2014 12:30 PM, Piet83 petersma...@gmail.com javascript
be to deploy your template and then alter the resource
settings one it's available. But this should be added to the module.
I currently don't have access to a rhev/ovirt setup to see what has
changed in the API.
Vincent
On Nov 10, 2014 12:30 PM, Piet83 petersma...@gmail.com javascript
Hello,
When deploying from a template with the ovirt module it creates the vm with
the specs that are defined within the template. Is it possible to adjust
the specs when provisioning with the ovirt module? So, is it possible to
give more cpu, mem or an other instanc_network to a vm
Hello,
In my playbook I had resource_type=template which should be
resource_type=new as shown in your example. So now it works, I can
provision a vm with Ansible!! Awesomeness!!
Thank you for your help.
Op dinsdag 19 augustus 2014 09:11:40 UTC+2 schreef Vincent Van der Kussen:
Hi,
I
, Piet83 petersma...@gmail.com
javascript: wrote:
Hello,
I'm trying to setup vm provisioning for Rhev with the ansible ovirt
module. I have installed ovirt-engine-sdk-python-3.4.0.7-1.el6.noarch
on my
Centos 6.5 Ansible server and created a simple playbook to play around
like to help with this one?
https://github.com/ansible/ansible/commits/devel/library/cloud/ovirt
On Thu, Jul 24, 2014 at 4:26 AM, Piet83 petersma...@gmail.com
javascript: wrote:
Hello,
I'm trying to setup vm provisioning for Rhev with the ansible
Thank you both!
May I ask an other question about hostvars in templates:
When I use the follwing i a playbook everything goes well:
The variable target is provided by the --extra-vars flag on the command
line and mysqluserpass is defined in /etc/ansible/host_vars/ansible-test
and encrypted
inside another expression.
You had:
{{ hostvars[{{target}}]['mysqluserpass'] }}
You need
{{ hostvars[target]['mysqluserpass'] }}
Which also, thankfully, is easier to read too.
Can also be written
{{ hostvars[target].mysqluserpass }}
On Fri, Aug 1, 2014 at 8:39 AM, Piet83 petersma
Of course:
ansible-vault edit /etc/ansible/host_vars/ansible-test
---
mysqlrootpass: XX
mysqluserpass: XX
Op vrijdag 1 augustus 2014 16:30:43 UTC+2 schreef Michael DeHaan:
Can we see the host_vars file contents?
--
You received this message because
in Ansible:
- hosts: webservers-amsterdam
tasks:
- yum: name=foo state=latest
etc
On Wed, Jul 30, 2014 at 8:06 AM, Piet83 petersma...@gmail.com
javascript: wrote:
Thank you Michael for the right syntax :)
Is it also possible to select one host in the goup array based
in the playbook, I'd do this:
{# set db_head_node = groups['databaseserver'][0] #}
{{ hostvars[db_head_node].blarg }}
for readability purposes
On Tue, Jul 29, 2014 at 11:02 AM, Piet83 petersma...@gmail.com
javascript: wrote:
Ok but what if I don't know the server name but only
Hello,
Is it possible to use variables defined in a ansible host file for a
template? Lets say this is the host file:
[webservers]
server1 city=amsterdam
server2 city=london
[databaseserver]
server3 city=amsterdam
server4 city=london
How can I use for instance the ip address of
Ok but what if I don't know the server name but only that it is an database
server in amsterdam?
Something like this, but then with the right syntax?
{{ groups[databaseserver] | {{ hostvars[amsterdam] }} | {{
ansible_eth0.ipv4.address }} }}
Op dinsdag 29 juli 2014 14:23:04 UTC+2 schreef
Hello,
I'm trying to setup vm provisioning for Rhev with the ansible ovirt module.
I have installed ovirt-engine-sdk-python-3.4.0.7-1.el6.noarch on my Centos
6.5 Ansible server and created a simple playbook to play around with this.
The playbook tries to provision a vm based on a template
On Thu, Jul 24, 2014 at 4:26 AM, Piet83 petersma...@gmail.com
javascript: wrote:
Hello,
I'm trying to setup vm provisioning for Rhev with the ansible ovirt
module. I have installed ovirt-engine-sdk-python-3.4.0.7-1.el6.noarch
on my
Centos 6.5 Ansible server
17 matches
Mail list logo