diff options
author | Nauman Ahad <Nauman_Ahad@dell.com> | 2016-01-18 12:13:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-18 12:13:19 +0000 |
commit | 559b51c45a93621a96c6c29332fdcc768578eb71 (patch) | |
tree | 41b680a29e8b735f660c9e5c18e2b1c5ebcc4ad3 /benchmarks | |
parent | 499c791fe98cea785f3215c65b2a1b2211c27267 (diff) | |
parent | 254ebb0efff73faa2285cf9f1ce70298a9787cb0 (diff) |
Merge "bug fix: make installer specific changes for baremetal. cater for fuel"
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/playbooks/iperf.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml index feef9369..fdf22c94 100644 --- a/benchmarks/playbooks/iperf.yaml +++ b/benchmarks/playbooks/iperf.yaml @@ -17,6 +17,9 @@ set_fact: rolename: "{{role}}" when: role is defined + - name: installertype + set_fact: + installertype: "{{installer}}" - name: Get Hostname shell: echo $HOSTNAME register: hostID @@ -43,10 +46,11 @@ shell: iptables -L INPUT --line-number | grep DROP | awk '{print $1}' register: iptable_entry ignore_errors: yes + when: installertype == 'fuel' - name: Removing entry number shell: iptables -D INPUT {{iptable_entry.stdout}} ignore_errors: yes - when: iptable_entry != '' + when: iptable_entry != '' and installertype == 'fuel' - name: Installing IPERF when Ubuntu shell: apt-get install iperf3 -y when: ansible_os_family == "Debian" and rolename == '1-server' |