aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/bootstrap.sh
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-12 16:17:42 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-12 16:17:42 +0100
commitdc10745f013cf1dab938b54d03ca67a32138370a (patch)
treed4461a5ea7d8487bf8b8ed243cdb376f6272285c /roles/space_server/bootstrap.sh
parente8cdba85c48dcbbd42e6fcb5be3aa2912008cb84 (diff)
downloadlabitat-ansible-dc10745f013cf1dab938b54d03ca67a32138370a.tar.gz
labitat-ansible-dc10745f013cf1dab938b54d03ca67a32138370a.tar.xz
labitat-ansible-dc10745f013cf1dab938b54d03ca67a32138370a.zip
space_server: bootstrap.sh: use ansible-pull
Diffstat (limited to 'roles/space_server/bootstrap.sh')
-rwxr-xr-xroles/space_server/bootstrap.sh9
1 files changed, 4 insertions, 5 deletions
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: