Matteo Scandolo | ede125b | 2017-08-08 13:05:25 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Scott Baker | c41914d | 2017-06-26 14:00:52 -0700 | [diff] [blame] | 17 | --- |
| 18 | #- name: fix the networking |
| 19 | # shell: "{{ item }}" |
| 20 | # with_items: |
| 21 | # - ifconfig {{ eth_device }} hw ether {{ eth_mac }} |
| 22 | # - ip route del default || true |
| 23 | # - ip route add default via {{ gateway_ip }} |
| 24 | # - arp -s {{ gateway_ip }} {{ gateway_mac }} |
| 25 | |
| 26 | |
| 27 | - name: download socat |
| 28 | get_url: url=http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/socat-1.7.1.3-1.el6.rf.x86_64.rpm dest=/root/socat-1.7.1.3-1.el6.rf.x86_64.rpm |
| 29 | |
| 30 | - name: install socat |
| 31 | yum: name=/root/socat-1.7.1.3-1.el6.rf.x86_64.rpm state=present |
| 32 | |
| 33 | - name: copy over setup answers |
| 34 | template: |
| 35 | src: templates/setup_answers.txt.j2 |
| 36 | dest: /root/setup_answers.txt |
| 37 | |
| 38 | - name: run the setup script |
| 39 | shell: /a/sbin/setup.sh < /root/setup_answers.txt |
| 40 | args: |
| 41 | creates: /a/var/log/setup.log |