initial download and build of sipp
still need to copy startup scripts (client/server) and cron
This commit is contained in:
33
roles/sipclient/tasks/main.yaml
Executable file
33
roles/sipclient/tasks/main.yaml
Executable file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: download sipp source
|
||||
get_url:
|
||||
url: "https://github.com/SIPp/sipp/releases/download/v3.5.2/sipp-3.5.2.tar.gz"
|
||||
dest: "/home/pi/sipp-3.5.2.tar.gz"
|
||||
register: sipp_source
|
||||
tags: sipp
|
||||
- name: Unpacking SIPP
|
||||
unarchive:
|
||||
copy: no
|
||||
dest: /home/pi/
|
||||
src: "/home/pi/sipp-3.5.2.tar.gz"
|
||||
when: sipp_source.changed
|
||||
register: sipp_source_unpack
|
||||
tags: sipp
|
||||
- name: move sipp directory
|
||||
command: 'mv sipp-3.5.2 sipp'
|
||||
when: sipp_source_unpack is changed
|
||||
register: sipp_move_directory
|
||||
tags: sipp
|
||||
- name: configure sipp
|
||||
command: "./configure --with-openssl --with-pcap --with-sctp"
|
||||
args:
|
||||
chdir: "/home/pi/sipp"
|
||||
when: sipp_move_directory is changed
|
||||
tags: sipp
|
||||
register: sipp_configure
|
||||
- name: build sipp
|
||||
shell: make
|
||||
when: sipp_configure is changed
|
||||
args:
|
||||
chdir: "/home/pi/sipp"
|
||||
tags: sipp
|
||||
Reference in New Issue
Block a user