From 640e11001ec4c31f36cbd4075f1082b9e2cf6b25 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Fri, 18 May 2018 22:46:33 +0200 Subject: [PATCH] Add examples to remove or take down a profile --- examples/down-profile.yml | 10 ++++++++++ examples/remove-profile.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 examples/down-profile.yml create mode 100644 examples/remove-profile.yml diff --git a/examples/down-profile.yml b/examples/down-profile.yml new file mode 100644 index 0000000..5087240 --- /dev/null +++ b/examples/down-profile.yml @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: BSD-3-Clause +--- +- name: Set {{ profile }} down + hosts: all + vars: + network_connections: + - name: "{{ profile }}" + state: down + roles: + - linux-system-roles.network diff --git a/examples/remove-profile.yml b/examples/remove-profile.yml new file mode 100644 index 0000000..95496aa --- /dev/null +++ b/examples/remove-profile.yml @@ -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