-update sipp roles. sipp is common, download, compiles, and installs scripts

sipclient and sipserver set up respective cron jobs
This commit is contained in:
Pi
2019-03-19 13:34:26 -04:00
parent c58e4852c0
commit 6a00f1987c
6 changed files with 57 additions and 2 deletions

20
roles/sipclient/tasks/main.yaml Executable file
View File

@@ -0,0 +1,20 @@
---
- name: enable sip client
become: true
cron:
name: "sip client"
minute: "*/30"
hour: "8-18"
weekday: "1-5"
job: "/usr/bin/perl -e 'sleep int rand 1800' && /home/pi/sipp/startclient.sh"
user: root
tags: sipclient_cron
- name: stop sip calling after hours
become: true
cron:
name: "stop sip client"
hour: "17"
weekday: "1-5"
job: "/usr/bin/perl -e 'sleep int rand 1800' && /home/pi/sipp/stopclient.sh"
user: root
tags: sipclient_stop