diff --git a/main.yaml b/main.yaml index 5845682..e9867fc 100644 --- a/main.yaml +++ b/main.yaml @@ -17,6 +17,7 @@ - wifi - vnc - domainname + - pi vars_prompt: - name: rocommunity prompt: "Enter SNMP RO community name" diff --git a/roles/ftpclient/tasks/main.yaml b/roles/ftpclient/tasks/main.yaml index 6a121f3..65975ee 100755 --- a/roles/ftpclient/tasks/main.yaml +++ b/roles/ftpclient/tasks/main.yaml @@ -2,10 +2,10 @@ - name: enable cron job for ftp traffic cron: name: "ftptraff" - minute: "*/60" - hour: "7-18" + minute: "0" + hour: "7-18/2" weekday: "1-5" - job: "/usr/bin/perl -e 'sleep int rand 3599' && /home/pi/scripts/ftp-session.sh" + job: "/usr/bin/perl -e 'sleep int rand 7199' && /home/pi/scripts/ftp-session.sh" tags: ftptraff_cron - name: copy ftp-session.sh to scripts directory copy: diff --git a/roles/pi/tasks/main.yaml b/roles/pi/tasks/main.yaml new file mode 100755 index 0000000..2c1695d --- /dev/null +++ b/roles/pi/tasks/main.yaml @@ -0,0 +1,17 @@ +--- +- name: set swapfile + become: true + lineinfile: + path: /etc/dphys-swapfile + state: present + regexp: '^CONF_SWAPSIZE' + line: 'CONF_SWAPSIZE=1024' + owner: root + group: root + mode: 0600 + tags: set_swapfile +- name: restart swapfile + become: true + command: '/etc/init.d/dphys-swapfile restart' + tags: set_swapfile + diff --git a/roles/sipp/files/stopclient.sh b/roles/sipp/files/stopclient.sh index 1d39f68..188fc07 100644 --- a/roles/sipp/files/stopclient.sh +++ b/roles/sipp/files/stopclient.sh @@ -1,2 +1,2 @@ -#/bin/bash +#!/bin/bash echo "q" >/dev/udp/127.0.0.1/8888