# SPDX-License-Identifier: BSD-3-Clause
---
- name: Include network role
  include_role:
    name: linux-system-roles.network
  vars:
    network_connections:
      - name: "{{ interface }}"
        state: up
        persistent_state: present
        type: ethernet
        autoconnect: true
        ip:
          address: 192.0.2.1/24
    network_provider: initscripts
- name: Include network role
  include_role:
    name: linux-system-roles.network
  vars:
    network_connections:
      - name: "{{ interface }}"
        state: down
        persistent_state: absent
    network_provider: initscripts
...
