peopledoc / ansible-role-boot

Ansible role to boot .lxc hosts in an inventory, Vagrantfile provided in novafloss/ansible-setup
4 stars 0 forks source link

Parameterize lxd alias #5

Closed indispeq closed 8 years ago

indispeq commented 8 years ago

I do not have access to push a new branch so here is my modification:

commit 4bd187e6a47cb8287bdbf2e546704d74f3744f4b
Author: Aron Szekely <aron@indispeq.com>
Date:   Fri Jul 1 14:03:37 2016 -0400

    Parameterize lxd alias hostvar

diff --git a/tasks/lxd.yml b/tasks/lxd.yml
index f869130..54657ff 100644
--- a/tasks/lxd.yml
+++ b/tasks/lxd.yml
@@ -14,7 +14,7 @@
       mode: pull
       server: https://images.linuxcontainers.org
       protocol: lxd
-      alias: "ubuntu/xenial/amd64"
+      alias: '{{ hostvars[item].get("lxd_alias", "ubuntu/xenial/amd64") }}'
     profiles: ['default']
     wait_for_ipv4_addresses: true
   when: item.split('.')[-1] == 'lxd'

How can I get r/w access to this repo?

indispeq commented 8 years ago

J'ai acces et fait un PR je ferme.