Skip to content

Commit

Permalink
Removed pip install docker packages and changed dir source
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanealV authored Sep 9, 2023
1 parent 21e0a9a commit 0548239
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions playbook.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
---
- name: Install Docker Python
hosts: all
become: true
tasks:
- name: Install Docker Module with Pip
ansible.builtin.pip:
name: docker
- name: Pull and Deploy Docker Images
hosts: all
become: true
tasks:
- name: Stop and Remove Existing Containers
community.docker.docker_compose:
project_src: /ibobots/modmail
project_src: ~/ibobots/modmail
state: absent

- name: Pull Latest Docker Image
community.docker.docker_compose:
project_src: /ibobots/modmail
project_src: ~/ibobots/modmail
pull: true

- name: Deploy Docker Image
community.docker.docker_compose:
project_src: /ibobots/modmail
project_src: ~/ibobots/modmail
build: false

0 comments on commit 0548239

Please sign in to comment.