From 3a397ea9db1749b3bf981d8e63d9f9ac6fc7f63e 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 4a00f5005f81fc2dfec072e8cd967d6f5d054c8d 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: