fix for #4 by apt update

Fixe for https://github.com/stationgroup/ansible-experiments/issues/4 by running `apt update` before installing `python`.
This commit is contained in:
Bryan Black 2018-05-11 17:38:30 -07:00 committed by GitHub
parent 5963e5d413
commit 15245a47a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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