From dc10745f013cf1dab938b54d03ca67a32138370a Mon Sep 17 00:00:00 2001
From: Emil Renner Berthing <esmil@labitat.dk>
Date: Sun, 12 Nov 2017 16:17:42 +0100
Subject: space_server: bootstrap.sh: use ansible-pull

---
 roles/space_server/bootstrap.sh | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'roles/space_server')

diff --git a/roles/space_server/bootstrap.sh b/roles/space_server/bootstrap.sh
index 17f8c7a..c358db5 100755
--- a/roles/space_server/bootstrap.sh
+++ b/roles/space_server/bootstrap.sh
@@ -34,9 +34,6 @@
 # btrfs subvolume create /mnt/home
 # mount -o noatime,ssd,compress=lzo,subvol=/home /dev/sda2 /home
 #
-# Clone the labitat-ansible git repo to /home/ansible
-# git clone <URL> /home/ansible
-#
 # Run this script
 
 set -e
@@ -60,7 +57,9 @@ dnf \
   --enablerepo=updates \
   install dnf python2-dnf ansible
 
-systemd-nspawn -D "$dest" --bind /boot --bind /home -- \
-  ansible-playbook -i space, -c local /home/ansible/space.yml
+systemd-nspawn -D "$dest" -M space -E ANSIBLE_FORCE_COLOR=1 \
+  --bind /boot --bind /home -- \
+  ansible-pull -i space, -c local \
+    -U 'https://github.com/labitat/labitat-ansible.git' space.yml
 
 # vim: set ts=2 sw=2 et:
-- 
cgit v1.2.1