initial import from social-coop

This commit is contained in:
Nick Stokoe
2020-11-29 12:39:02 +00:00
commit 56fa50ec69
7 changed files with 169 additions and 0 deletions

34
bootstrap.yml Normal file
View File

@@ -0,0 +1,34 @@
---
- name: bootstrap fact gathering
hosts: all
user: root
gather_facts: False
# Probe the system for package management type
tasks:
- name: check package management
action: raw apt-get
ignore_errors: yes
register: has_apt
# For now we don't support other package management systems!
- name: fail if no apt package management
fail:
msg: We currently only support Linux with apt
when: not has_apt
- import_playbook: bootstrap-debian.yml
when: has_apt
# Maybe add these somewhere later.
# # Needs to be included before sshd, since root needs to have a key installed
# # before sshd port changes when bootstrapping
# - role: ssh-key
# ssh_key_user: root
# ssh_key_pubfile: "{{userdefs.root.pubkey}}"
# - role: sshd
# sshd_port: "{{sshd.port}}"
# # ... moves port