Clean the incoming folder after moving the .deb file

This commit is contained in:
TeoV
2019-10-31 17:36:50 +02:00
committed by Dan Christian Bogos
parent 186495e1ae
commit 52df145f3c

View File

@@ -208,7 +208,14 @@
# Move the file to PKG server
- name : Copy the file to PKG server
become: yes
command: sudo sshpass -p "{{ pkgPass }} " scp {{ item }} {{ gouser }}@{{ internalPkgAddr }}:{{ internalPkgDir }}
command: sudo sshpass -p "{{ pkgPass }} " scp /var/packages/debian/incoming/{{ item }} {{ gouser }}@{{ internalPkgAddr }}:{{ internalPkgDir }}
args :
chdir: /var/packages/debian
with_items: '{{ debFileName.stdout_lines }}'
chdir: /var/packages/debian/incoming/
with_items: '{{ debFileName.stdout_lines }}'
# Clean the incoming folder
- name : Clean the incoming folder
become: yes
command: sudo rm /var/packages/debian/incoming/*
args :
chdir: /var/packages/debian