ftpclient setup
This commit is contained in:
3
hosts
3
hosts
@@ -43,3 +43,6 @@
|
|||||||
|
|
||||||
[youtube]
|
[youtube]
|
||||||
192.168.50.2
|
192.168.50.2
|
||||||
|
|
||||||
|
[ftpclient]
|
||||||
|
192.168.50.2
|
||||||
|
|||||||
@@ -22,3 +22,6 @@
|
|||||||
- hosts: youtube
|
- hosts: youtube
|
||||||
roles:
|
roles:
|
||||||
- youtube
|
- youtube
|
||||||
|
- hosts: ftpclient
|
||||||
|
roles:
|
||||||
|
- ftpclient
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
- name: enable cron job for ftp traffic
|
- name: enable cron job for ftp traffic
|
||||||
cron:
|
cron:
|
||||||
name: "ftptraff"
|
name: "ftptraff"
|
||||||
minute: "*/30"
|
minute: "*/60"
|
||||||
hour: "7-18"
|
hour: "7-18"
|
||||||
weekday: "1-5"
|
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
|
tags: ftptraff_cron
|
||||||
- name: copy ftp-session.sh to scripts directory
|
- name: copy ftp-session.sh to scripts directory
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
Reference in New Issue
Block a user