server-config/roles/init/tasks/configure-networks.yml

8 lines
291 B
YAML

---
- name: Configuro la scheda secondaria
shell: /sbin/e-smith/db networks setprop eth1 bootproto none device eth1 ipaddr 10.0.0.1 netmask 255.255.255.0 onboot yes role green
when: "'NethServer' in sysconfig_productname.stdout"
register: eth1_enabled
notify:
- interface update