From 15245a47a91d59f24d4a81ecf2c049e055f0cdcd Mon Sep 17 00:00:00 2001 From: Bryan Black Date: Fri, 11 May 2018 17:38:30 -0700 Subject: [PATCH] fix for #4 by apt update Fixe for https://github.com/stationgroup/ansible-experiments/issues/4 by running `apt update` before installing `python`. --- package_updates/base-setup.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package_updates/base-setup.yml b/package_updates/base-setup.yml index 0c0f8f1..39dde27 100644 --- a/package_updates/base-setup.yml +++ b/package_updates/base-setup.yml @@ -4,7 +4,7 @@ gather_facts: false tasks: - name: install python2 (vagrant images seem to come with python3 only) - raw: apt install -y python python-apt + raw: apt update && apt install -y python python-apt - name: install ansible requirements - ubuntu bionic hosts: ubuntu[3..4] @@ -17,7 +17,7 @@ hosts: freebsd* gather_facts: false tasks: - - raw: pkg install --yes python + - raw: pkg update && pkg install --yes python - name: install ubuntu1 node as ansible control machine hosts: ubuntu1