- /group_vars/all.yml - /roles/flibusta/tasks/main.yml - /roles/flibusta/handlers/main.yml - /roles/flibusta/templates/docker-compose.yml.j2
36 lines
874 B
YAML
36 lines
874 B
YAML
---
|
|
- name: restart flibusta
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ flibusta_base_dir }}"
|
|
state: present
|
|
restarted: true
|
|
|
|
- name: rebuild flibusta
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ flibusta_base_dir }}"
|
|
state: present
|
|
build: true
|
|
restarted: true
|
|
|
|
- name: stop flibusta
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ flibusta_base_dir }}"
|
|
state: stopped
|
|
|
|
- name: start flibusta
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ flibusta_base_dir }}"
|
|
state: present
|
|
|
|
- name: update flibusta database
|
|
shell: |
|
|
docker exec flibusta_php php /application/tools/import.php --import
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: run daily update script
|
|
shell: |
|
|
cd {{ flibusta_base_dir }}
|
|
./update_daily.sh
|
|
args:
|
|
executable: /bin/bash |