diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-12 16:17:42 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-12 16:17:42 +0100 |
commit | dc10745f013cf1dab938b54d03ca67a32138370a (patch) | |
tree | d4461a5ea7d8487bf8b8ed243cdb376f6272285c | |
parent | e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84 (diff) | |
download | labitat-ansible-dc10745f013cf1dab938b54d03ca67a32138370a.tar.gz labitat-ansible-dc10745f013cf1dab938b54d03ca67a32138370a.tar.xz labitat-ansible-dc10745f013cf1dab938b54d03ca67a32138370a.zip |
space_server: bootstrap.sh: use ansible-pull
-rwxr-xr-x | roles/space_server/bootstrap.sh | 9 |
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: |