Skip to content

Commit

Permalink
Update playbook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
massteff authored Jan 22, 2024
1 parent 138a97c commit f165384
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,24 @@
docker compose up -d
cd ~/
- name: Effacer ~/dai-pw04 s'il existe
become: yes
ansible.builtin.file:
path: "/home/{{ ansible_env.USER }}/dai-pw04"
state: absent

- name: Clone du dépôt dai-pw04
ansible.builtin.git:
repo: 'git@github.com:heig-lherman/dai-pw04.git'
dest: '~/heig-vd-dai-course-code-examples/'

- name: Initialisation docker compose dai-pw04
ansible.builtin.shell:
cmd: |
cd ~/dai-pw04/
docker compose up -d
cd ~/
handlers:
- name: Mise à jour de l'index des paquets
ansible.builtin.apt:
Expand Down

0 comments on commit f165384

Please sign in to comment.