update smbclient to install the script and create the cron job

This commit is contained in:
Pi
2019-02-25 15:00:59 -05:00
parent 662b6258ee
commit a911344cc6
2 changed files with 25 additions and 0 deletions

View File

@@ -7,3 +7,11 @@
weekday: "1-5"
job: "/usr/bin/perl -e 'sleep int rand 1199' && /home/pi/scripts/smb-session.sh"
tags: smbtraff_cron
- name: copy smb-session.sh to scripts directory
copy:
src: "{{ role_path }}/files/smb-session.sh"
dest: /home/pi/scripts/smb-session.sh
owner: pi
group: pi
mode: a+x
tags: smbtraff_script