import files

This commit is contained in:
Yann Autissier
2021-02-09 17:05:00 +01:00
parent f5c4576411
commit 44a6d37ba5
425 changed files with 23195 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
---
# file: playbook.yml
# bootstrap hosts
- hosts: default
gather_facts: false
pre_tasks:
- name: raw - install ansible requirements for alpine linux
raw: "[ -f /etc/alpine-release ] && /sbin/apk update && { which python3 >/dev/null 2>&1 || /sbin/apk add python3; } && { which sudo >/dev/null 2>&1 || /sbin/apk add sudo; } && { /bin/tar --version 2>/dev/null |grep busybox >/dev/null && /sbin/apk add tar; } && { ls /usr/lib/ssh/sftp-server >/dev/null 2>&1 || /sbin/apk add openssh-sftp-server; } || true"
# install default packages and user settings
- import_playbook: playbooks/hosts.yml
tags:
- hosts
# mount additional disks
- import_playbook: playbooks/disks.yml
tags:
- disks
# install docker
- import_playbook: playbooks/docker.yml
tags:
- docker
# install aws cli
- import_playbook: playbooks/aws-cli.yml
tags:
- aws-cli