Files
noofac-snackpot/bootstrap-debian.yml
Nick Stokoe 04b0d30929 bootstrap.yml - target python3
Ubuntu fossa seems not to have the packages we want for python 2
2021-02-07 12:47:53 +00:00

30 lines
720 B
YAML

---
- name: debian bootstrap fact gathering
hosts: all
user: root
gather_facts: False
# Install the basics required to gather facts.
# This shouldn't be run normally, however, can't find a way to
# conditionally run it so far.
tasks:
- name: update apt repository
action: raw apt-get -q -y update
- name: install python3
action: raw apt-get -q -y install python3
- name: ensure other prereqs installed
action: raw apt-get -qy install python3-paramiko python3-yaml python3-jinja2 python3-apt python3-docker
- name: update packages
tags:
- update
hosts: all
user: root
tasks:
- name: update apt safely
apt: upgrade=safe
async: 600
poll: 5