adding docker-compose and pull pre-requisite images before backups

pull/1/head
Cian Hatton 3 years ago
parent c42c3cbd45
commit 1aa9b87ea5

@ -17,7 +17,7 @@
vars_files: vars_files:
- ../variables.yml - ../variables.yml
tasks: tasks:
- name: Restore Tautulli - name: Restore Portainer
import_tasks: ../tasks/restore-volume-tasks.yml import_tasks: ../tasks/restore-volume-tasks.yml
vars: vars:
container_name: "tautulli" container_name: "portainer"

@ -30,4 +30,4 @@
- name: Start Portainer - name: Start Portainer
tags: "skip-e2e" # we can't mount volumes on test runners. tags: "skip-e2e" # we can't mount volumes on test runners.
command: "chdir={{home_lab_checkout_dir}}/docker-compose/portainer docker compose up -d" command: "chdir={{home_lab_checkout_dir}}/docker-compose/portainer docker-compose up -d"

@ -30,4 +30,10 @@
- name: Install Docker Module for Python - name: Install Docker Module for Python
pip: pip:
name: docker name: docker
- name: Install docker-compose
get_url:
url : https://github.com/docker/compose/releases/download/1.25.1-rc1/docker-compose-Linux-x86_64
dest: /usr/local/bin/docker-compose
mode: 'u+x,g+x'

@ -1,4 +1,18 @@
--- ---
# The docker volume backup image utilizes these images
- name: Pull ubuntu
docker_image:
name: ubuntu
source: pull
- name: Pull busybox
docker_image:
name: busybox
source: pull
- name: Pull docker-volume-backup
docker_image:
name: {{docker_volume_backup_image}}
source: pull
# https://stackoverflow.com/questions/45237632/ansible-w-docker-show-current-container-state # https://stackoverflow.com/questions/45237632/ansible-w-docker-show-current-container-state
- name: Get container info - name: Get container info
docker_container_info: docker_container_info:

Loading…
Cancel
Save