mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-21 02:11:23 +00:00
commit
f2e493cd75
7 changed files with 14 additions and 33 deletions
|
|
@ -1,10 +0,0 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- name: Set {{ profile }} down
|
||||
hosts: all
|
||||
vars:
|
||||
network_connections:
|
||||
- name: "{{ profile }}"
|
||||
state: down
|
||||
roles:
|
||||
- linux-system-roles.network
|
||||
1
examples/down-profile.yml
Symbolic link
1
examples/down-profile.yml
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../tests/down-profile.yml
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- name: Remove {{ profile }}
|
||||
hosts: all
|
||||
vars:
|
||||
network_connections:
|
||||
- name: "{{ profile }}"
|
||||
state: absent
|
||||
roles:
|
||||
- linux-system-roles.network
|
||||
1
examples/remove-profile.yml
Symbolic link
1
examples/remove-profile.yml
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../tests/remove-profile.yml
|
||||
|
|
@ -1 +0,0 @@
|
|||
../examples/remove-profile.yml
|
||||
10
tests/remove-profile.yml
Normal file
10
tests/remove-profile.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- name: Remove {{ profile }}
|
||||
hosts: all
|
||||
vars:
|
||||
network_connections:
|
||||
- name: "{{ profile }}"
|
||||
state: absent
|
||||
roles:
|
||||
- linux-system-roles.network
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- name: Remove {{ profile }}
|
||||
hosts: all
|
||||
vars:
|
||||
network_connections:
|
||||
- name: "{{ profile }}"
|
||||
state: absent
|
||||
roles:
|
||||
- linux-system-roles.network
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
type: ethernet
|
||||
autoconnect: yes
|
||||
ip:
|
||||
address: 192.0.27.1/24
|
||||
address: 192.0.2.1/24
|
||||
roles:
|
||||
- linux-system-roles.network
|
||||
# FIXME: assert profile present
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -13,7 +13,7 @@ deps =
|
|||
[base]
|
||||
passenv = *
|
||||
setenv =
|
||||
PYTHONPATH = {toxinidir}/src
|
||||
PYTHONPATH = {toxinidir}/library
|
||||
LC_ALL = C
|
||||
changedir = {toxinidir}/tests
|
||||
covtarget = network_connections
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue