summaryrefslogtreecommitdiff
path: root/playbooks/diskimage_builder.yaml
diff options
context:
space:
mode:
authorckonstanski <ckonstanski@pippiandcarlos.com>2017-11-21 19:17:24 +0000
committerckonstanski <ckonstanski@pippiandcarlos.com>2017-11-21 19:17:24 +0000
commit621a5c280a71fe3ede8742b9b289ee0e3d2a9875 (patch)
tree6c475e63f0bc4441f0ea1202ac0c2d3f1408ada7 /playbooks/diskimage_builder.yaml
parent31d56effdc9c62055f0d35cc3a1c4bdd5ceccbe8 (diff)
autocommit Tue Nov 21 19:17:24 UTC 2017
Diffstat (limited to 'playbooks/diskimage_builder.yaml')
-rw-r--r--playbooks/diskimage_builder.yaml51
1 files changed, 0 insertions, 51 deletions
diff --git a/playbooks/diskimage_builder.yaml b/playbooks/diskimage_builder.yaml
deleted file mode 100644
index 4a0fbfd..0000000
--- a/playbooks/diskimage_builder.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
----
-- name: "Install diskimage-builder"
- hosts: all
- tasks:
- - name: "Update apt"
- apt:
- update_cache: yes
- when: ansible_distribution == "Ubuntu"
-
- - name: "Install packages"
- apt:
- pkg: "{{ item }}"
- state: present
- with_items:
- - qemu
- - parted
- - kpartx
- - python-yaml
- when: ansible_distribution == "Ubuntu"
-
- - name: "Discover whether pip is installed"
- shell: which pip && echo "true" || echo "false"
- register: pip_installed
-
- - name: "Install pip"
- shell: |
- mkdir -p /tmp/pip
- cd /tmp/pip
- wget https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install --upgrade pip dib-utils networkx
- when: ansible_distribution == "Ubuntu" and pip_installed.stdout == "false"
-
- - name: "Install diskimage-builder"
- shell: |
- mkdir -p /tmp/diskimage-builder
- cd /tmp/diskimage-builder
- git clone https://github.com/openstack/diskimage-builder.git
- cd diskimage-builder
- pip install --upgrade -r requirements.txt
- python setup.py install
- when: ansible_distribution == "Ubuntu"
-
- - name: "Install packages"
- portage:
- name: "{{ item }}"
- state: present
- with_items:
- - app-emulation/diskimage-builder
- - app-emulation/qemu
- when: ansible_distribution == "Gentoo"