30 lines
720 B
YAML
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
|