Scott Baker | c41914d | 2017-06-26 14:00:52 -0700 | [diff] [blame^] | 1 | --- |
| 2 | #- name: fix the networking |
| 3 | # shell: "{{ item }}" |
| 4 | # with_items: |
| 5 | # - ifconfig {{ eth_device }} hw ether {{ eth_mac }} |
| 6 | # - ip route del default || true |
| 7 | # - ip route add default via {{ gateway_ip }} |
| 8 | # - arp -s {{ gateway_ip }} {{ gateway_mac }} |
| 9 | |
| 10 | |
| 11 | - name: download socat |
| 12 | 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 |
| 13 | |
| 14 | - name: install socat |
| 15 | yum: name=/root/socat-1.7.1.3-1.el6.rf.x86_64.rpm state=present |
| 16 | |
| 17 | - name: copy over setup answers |
| 18 | template: |
| 19 | src: templates/setup_answers.txt.j2 |
| 20 | dest: /root/setup_answers.txt |
| 21 | |
| 22 | - name: run the setup script |
| 23 | shell: /a/sbin/setup.sh < /root/setup_answers.txt |
| 24 | args: |
| 25 | creates: /a/var/log/setup.log |