Merge pull request #62 from tyll/fixes

Various minor fixes
This commit is contained in:
Till Maas 2018-06-28 18:04:03 +02:00 committed by GitHub
commit f2e493cd75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 33 deletions

View file

@ -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
View file

@ -0,0 +1 @@
../tests/down-profile.yml

View file

@ -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
View file

@ -0,0 +1 @@
../tests/remove-profile.yml

View file

@ -1 +0,0 @@
../examples/remove-profile.yml

10
tests/remove-profile.yml Normal file
View 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

View file

@ -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

View file

@ -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

View file

@ -13,7 +13,7 @@ deps =
[base]
passenv = *
setenv =
PYTHONPATH = {toxinidir}/src
PYTHONPATH = {toxinidir}/library
LC_ALL = C
changedir = {toxinidir}/tests
covtarget = network_connections