retrace: run long running tasks in background

This commit is contained in:
Miroslav Suchý 2018-11-27 10:00:39 +01:00
parent 91c70c1c83
commit 1bbd40217e

View file

@ -1,7 +1,8 @@
---
#long running tasks - run them in background - we do not actually care about the results
- name: reposync for fedora
command: retrace-server-reposync fedora {{ item[0] }} {{ item[1] }}
command: nohup retrace-server-reposync fedora {{ item[0] }} {{ item[1] }} </dev/null >/tmp/ansible.reposync_for_fedora.log &
with_nested:
- "{{ rs_internal_fedora_vers }}"
- "{{ rs_internal_arch_list }}"
@ -11,7 +12,7 @@
when: not devel
- name: reposync for centos
command: retrace-server-reposync centos 7 x86_64
command: nohup retrace-server-reposync centos 7 x86_64 </dev/null >/tmp/ansible.reposync_for_centos.log &
become: yes
become_user: retrace
tags: [rs_reposync, rs_fedora]