commit 7071c10ae4a3ddb46b0b9cc20c6f8f6e0f0f318f
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sat Nov 5 08:54:44 2016 +0100
Ensure openvpn client is used when not 'online'
playbooks/groups/buildhw.yml | 2 ++
playbooks/groups/buildvm.yml | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/playbooks/groups/buildhw.yml b/playbooks/groups/buildhw.yml
index 91d4e91..ca08efc 100644
--- a/playbooks/groups/buildhw.yml
+++ b/playbooks/groups/buildhw.yml
@@ -33,6 +33,8 @@
when: not inventory_hostname.startswith('bkernel')
- include: "{{ tasks }}/create_swap_file.yml swap_file_path=/var/swap-file
swap_file_bs=1M swap_file_count=4096"
when: inventory_hostname.endswith('scaleway.rpmfusion.net')
+ - include: "{{ tasks }}/openvpn_client.yml"
+ when: not datacenter == 'online'
- name: make sure kojid is running
service: name=kojid state=running enabled=yes
diff --git a/playbooks/groups/buildvm.yml b/playbooks/groups/buildvm.yml
index db57750..ebc8238 100644
--- a/playbooks/groups/buildvm.yml
+++ b/playbooks/groups/buildvm.yml
@@ -32,6 +32,8 @@
when: not inventory_hostname.startswith('bkernel')
- include: "{{ tasks }}/motd.yml"
when: not inventory_hostname.startswith('bkernel')
+ - include: "{{ tasks }}/openvpn_client.yml"
+ when: not datacenter == 'online'
- name: make sure kojid is running
service: name=kojid state=running enabled=yes
Show replies by date