From 744235ec4593fb3097edc4bcf56bfd3335530c07 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Tue, 20 Aug 2024 11:31:49 +1200 Subject: [PATCH] =?UTF-8?q?chore:=20Removed=20test=20playbook=20?= =?UTF-8?q?=F0=9F=94=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/docker_playbook.yml | 58 --------------------------------------- tests/test.yml | 5 ---- 2 files changed, 63 deletions(-) delete mode 100644 tests/docker_playbook.yml delete mode 100644 tests/test.yml diff --git a/tests/docker_playbook.yml b/tests/docker_playbook.yml deleted file mode 100644 index b144435..0000000 --- a/tests/docker_playbook.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -# docker_playbook.yml - -- hosts: localhost - become: yes - - pre_tasks: - - name: define containers facts - set_fact: - containers: - - name: '{{ DOCKER_NAME }}' - image: '{{ DOCKER_IMAGE }}' - init: '{{ DOCKER_IMAGE_INIT | d("/sbin/init") }}' - tags: - - always - - tasks: - - name: install docker on localhost - pip: - name: docker - extra_args: "--upgrade" - - - name: create docker containers - docker_container: - name: '{{ item.name }}' - image: '{{ item.image }}' - command: '{{ item.init }}' - state: started - privileged: true - volumes: - - '/sys/fs/cgroup:/sys/fs/cgroup:ro' - loop: '{{ containers }}' - - - name: add containers to inventory - add_host: - name: '{{ item.name }}' - groups: docker_containers - ansible_connection: docker - changed_when: false - loop: '{{ containers }}' - -- name: run tasks in containers - hosts: docker_containers - strategy: free - become: yes - roles: - - { role: ../.. } - -- hosts: localhost - tasks: - - name: remove docker containers - docker_container: - name: '{{ item.name }}' - state: absent - loop: '{{ containers }}' - changed_when: false - tags: - - destroy diff --git a/tests/test.yml b/tests/test.yml deleted file mode 100644 index b3cc2b1..0000000 --- a/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: all - become: yes - roles: - - ../..