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:
parent
5963e5d413
commit
15245a47a9
|
@ -4,7 +4,7 @@
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: install python2 (vagrant images seem to come with python3 only)
|
- 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
|
- name: install ansible requirements - ubuntu bionic
|
||||||
hosts: ubuntu[3..4]
|
hosts: ubuntu[3..4]
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
hosts: freebsd*
|
hosts: freebsd*
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- raw: pkg install --yes python
|
- raw: pkg update && pkg install --yes python
|
||||||
|
|
||||||
- name: install ubuntu1 node as ansible control machine
|
- name: install ubuntu1 node as ansible control machine
|
||||||
hosts: ubuntu1
|
hosts: ubuntu1
|
||||||
|
|
Loading…
Reference in a new issue