2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2017 Ericsson AB and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10 # TODO: this role needs to be adjusted for different distros
12 - name: configure modules
22 - name: ensure glean rules are removed
24 path: "/etc/udev/rules.d/99-glean.rules"
26 - name: ensure interfaces.d folder is empty
27 shell: "/bin/rm -rf /etc/network/interfaces.d/*"
28 - name: ensure interfaces file is updated
32 - name: restart network service
33 shell: "/sbin/ifconfig {{ interface }} 0 && /sbin/ifdown -a && /sbin/ifup -a"
34 when: ansible_distribution_release == "xenial"