From 0322b69f63cd7812aa3258d25a5153bdc67d2d60 Mon Sep 17 00:00:00 2001 From: sneumann Date: Tue, 15 Nov 2016 17:49:14 +0100 Subject: [PATCH 1/2] Fix failure if image package index is outdated --- roles/bootstrap-os/tasks/bootstrap-ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml b/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml index 2d3becd44..6ac0be56f 100644 --- a/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml +++ b/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml @@ -7,7 +7,7 @@ ignore_errors: True - name: Bootstrap | Install python 2.x - raw: DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal + raw: DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y python-minimal when: need_bootstrap | failed - set_fact: From 3aa2d56da901ed2c92a122df93dcf94fa02ef28e Mon Sep 17 00:00:00 2001 From: sneumann Date: Wed, 16 Nov 2016 12:11:54 +0100 Subject: [PATCH 2/2] updated bootstrap-ubuntu.yml Moved the variable setting to the apt-get install part where it matters as requested in the review. --- roles/bootstrap-os/tasks/bootstrap-ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml b/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml index 6ac0be56f..efd7a768a 100644 --- a/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml +++ b/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml @@ -7,7 +7,7 @@ ignore_errors: True - name: Bootstrap | Install python 2.x - raw: DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y python-minimal + raw: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal when: need_bootstrap | failed - set_fact: