ftpclient setup

This commit is contained in:
Pi
2019-02-26 09:52:30 -05:00
parent 9dd17b23ad
commit 4f5beb268b
3 changed files with 8 additions and 2 deletions

3
hosts
View File

@@ -43,3 +43,6 @@
[youtube]
192.168.50.2
[ftpclient]
192.168.50.2

View File

@@ -22,3 +22,6 @@
- hosts: youtube
roles:
- youtube
- hosts: ftpclient
roles:
- ftpclient

View File

@@ -2,10 +2,10 @@
- name: enable cron job for ftp traffic
cron:
name: "ftptraff"
minute: "*/30"
minute: "*/60"
hour: "7-18"
weekday: "1-5"
job: "/usr/bin/perl -e 'sleep int rand 1799' && /home/pi/scripts/smb-session.sh"
job: "/usr/bin/perl -e 'sleep int rand 3599' && /home/pi/scripts/ftp-session.sh"
tags: ftptraff_cron
- name: copy ftp-session.sh to scripts directory
copy: