Files
dsfin-ansible/roles/sipclient/tasks/main.yaml
Pi 49fd61019b initial download and build of sipp
still need to copy startup scripts (client/server) and cron
2019-03-14 14:27:10 -04:00

34 lines
883 B
YAML
Executable File

---
- 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