Use command instead of docker_compose plugin

This commit is contained in:
Oliver Traber 2023-03-15 22:55:38 +01:00
parent 537590d799
commit 6c674ff530
Signed by: Bluemedia
GPG key ID: C0674B105057136C
4 changed files with 4 additions and 12 deletions

View file

@ -1,8 +1,5 @@
- name: Tear down PXE stack
docker_compose:
project_name: "pxe"
project_src: "{{ playbook_dir }}/roles/pxe-server/files/"
state: absent
ansible.builtin.command: "docker compose --project-name pxe down"
- name: Remove preseed files
file:

View file

@ -1,2 +1,2 @@
os_download_url: "https://deb.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/netboot.tar.gz"
os_download_checksum: "sha256:ec3b71964457f30a57061ea758c12394bf2b792b461c697e61cc2d47053c5878"
os_download_checksum: "sha256:e8edf26ac9837d7dbbcfd96f47f51530260a6c68568938978e1b63ea698d5663"

View file

@ -30,9 +30,4 @@
loop: "{{ groups['metal'] }}"
- name: Start PXE stack
docker_compose:
project_src: "{{ role_path }}/files"
project_name: "pxe"
state: present
restarted: true
build: true
ansible.builtin.command: "docker compose --project-name pxe -f {{ role_path }}/files/docker-compose.yml up -d --build"

View file

@ -5,4 +5,4 @@
- name: Wait for machines to come online with installed OS
wait_for_connection:
timeout: 600
timeout: 900