-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed pip install docker packages and changed dir source
- Loading branch information
1 parent
21e0a9a
commit 0548239
Showing
1 changed file
with
3 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |