Skip to content
Snippets Groups Projects
Commit 2b019ae9 authored by Martin Bergemann's avatar Martin Bergemann :speech_balloon:
Browse files

Merge branch 'use-abset' into 'master'

Use absent

See merge request !48
parents a1bf337c 8072b9d2
No related branches found
No related tags found
1 merge request!48Use absent
Pipeline #21724 passed
......@@ -50,9 +50,6 @@
stat:
path: /etc/cron.daily
register: cron
- name: Deleting config file
shell: rm -rf /root/freva-service-config/
warn: false
- name: Stopping services and deleting existing containers
shell: >
/usr/local/bin/docker-or-podman stop {{db_name}};
......@@ -62,6 +59,11 @@
echo 0
become: true
ignore_errors: true
- name: Deleting config file
file:
state: absent
force: true
path: "/root/freva-service-config/"
- name: Pulling container
become: true
shell: /usr/local/bin/docker-or-podman pull mariadb:latest
......
......@@ -30,9 +30,6 @@
stat:
path: /etc/cron.daily
register: cron
- name: Deleting config file
shell: rm -rf /root/freva-service-config/
warn: false
- name: Stopping services and deleting existing containers
shell: >
systemctl stop {{solr_name}};
......@@ -43,6 +40,11 @@
ignore_errors: true
become: true
- pause: seconds=5
- name: Deleting config file
file:
state: absent
force: true
path: "/root/freva-service-config/"
- name: Creating docker network
shell: >
/usr/local/bin/docker-or-podman network create "{{ project_name }}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment