This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-tsg-os-buildimage/tsg-9140-scripts/roles/system-init/tasks/main.yml
2021-04-28 22:32:59 -04:00

46 lines
1.1 KiB
YAML

---
- name: "get slot info"
shell: ipmitool picmg addrinfo
register: slot_info
ignore_errors: True
- debug:
var: slot_info
- name: "echo slot info"
shell: /bin/echo "{{ "192.168.1." }}" > /root/1.txt
- name: "set atca interior netwok ip addr"
vars:
ipaddr: "{{ slot_info.stdout_lines[0][22] | int + 16}}"
template:
src: "{{ role_path }}/templates/ifcfg-enp131s0f0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp131s0f0
tags: template
- name: "set enp1s0 up and NM_CONTROLLED=no"
template:
src: "{{ role_path }}/templates/ifcfg-enp1s0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp1s0
tags: template
- name: "set enp130s0 up and NM_CONTROLLED=no"
template:
src: "{{ role_path }}/templates/ifcfg-enp130s0.toml.j2"
dest: /etc/sysconfig/network-scripts/ifcfg-enp130s0
tags: template
- name: "set ifup-local "
template:
src: "{{ role_path }}/templates/ifup-local.toml.j2"
dest: /sbin/ifup-local
mode: 0777
tags: template
- name: "set ifdown-local "
template:
src: "{{ role_path }}/templates/ifdown-local.toml.j2"
dest: /sbin/ifdown-local
mode: 0777
tags: template