-updates to hosts
-changes to templates for scripts
This commit is contained in:
@@ -4,5 +4,5 @@ then
|
||||
echo "sipp is running"
|
||||
else
|
||||
cd /home/pi/sipp
|
||||
./sipp -sn uac_pcap 192.168.198.2 -bg -l 40
|
||||
./sipp -sn uac_pcap {{ hostvars[groups['sipserver'][0]].ansible_host }} -bg -l 40
|
||||
fi
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
tags: sipp
|
||||
- name: copy scripts
|
||||
when: sipp_move_directory is changed
|
||||
copy:
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: pi
|
||||
@@ -45,7 +45,7 @@
|
||||
- { src: "{{ role_path }}/files/stopclient.sh", dest: "/home/pi/sipp/stopclient.sh" }
|
||||
tags: sipp
|
||||
- name: copy scripts2
|
||||
copy:
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: pi
|
||||
|
||||
@@ -13,6 +13,6 @@ if pgrep -f test_file >/dev/null
|
||||
then
|
||||
exit 0
|
||||
else
|
||||
smbclient //192.168.88.230/share -c "get $file" -A ~/.credentials
|
||||
smbclient //{{ hostvars[groups['samba-server'][0]].ansible_host }}/share -c "get $file" -A ~/.credentials
|
||||
fi
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
job: "/usr/bin/perl -e 'sleep int rand 3500' && /home/pi/scripts/smb-session.sh"
|
||||
tags: smbtraff_cron
|
||||
- name: copy smb-session.sh to scripts directory
|
||||
copy:
|
||||
template:
|
||||
src: "{{ role_path }}/files/smb-session.sh"
|
||||
dest: /home/pi/scripts/smb-session.sh
|
||||
owner: pi
|
||||
|
||||
Reference in New Issue
Block a user