You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/_ansible/homelab/playbooks/setup-home-lab.yml

35 lines
851 B
YAML

---
- hosts: servers
become: true
vars_files:
- ../variables.yml
tasks:
- name: Update and upgrade apt packages
apt:
upgrade: yes
update_cache: yes
cache_valid_time: 86400
- name: Install aptitude
apt:
name: aptitude
state: latest
update_cache: true
- name: Install Dev Tooling
import_tasks: ../tasks/install-dev-tooling-tasks.yml
- name: Install & Configure Sudo
import_tasks: ../tasks/install-sudo-tasks.yml
- name: Checkout Git Repos
import_tasks: ../tasks/checkout-git-repos-tasks.yml
- name: Install Docker
import_tasks: ../tasks/install-docker-tasks.yml
- name: Create and Portainer
tags: "skip-e2e" # we can't mount volumes on test runners.
community.docker.docker_compose:
project_src: "{{home_lab_checkout_dir}}/docker-compose/portainer"