mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-25 20:03:49 +00:00
change include to include_tasks
The keyword `include:` is deprecated in favor of `include_tasks:`. See https://docs.ansible.com/ansible/latest/collections/ansible/builtin/include_module.html Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
parent
e694ad72c1
commit
58a8e258ef
6 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- include: get_interface_stat.yml
|
||||
- include_tasks: get_interface_stat.yml
|
||||
- name: "assert that interface {{ interface }} is absent"
|
||||
assert:
|
||||
that: not interface_stat.stat.exists
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- include: get_interface_stat.yml
|
||||
- include_tasks: get_interface_stat.yml
|
||||
- name: "assert that interface {{ interface }} is present"
|
||||
assert:
|
||||
that: interface_stat.stat.exists
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- include: get_profile_stat.yml
|
||||
- include_tasks: get_profile_stat.yml
|
||||
- name: "assert that profile '{{ profile }}' is absent"
|
||||
assert:
|
||||
that: not lsr_net_profile_exists
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- include: get_profile_stat.yml
|
||||
- include_tasks: get_profile_stat.yml
|
||||
- name: "assert that profile '{{ profile }}' is present"
|
||||
assert:
|
||||
that: lsr_net_profile_exists
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
msg: "type needs to be dummy, tap or veth, not '{{ type }}'"
|
||||
when: type not in ["dummy", "tap", "veth"]
|
||||
|
||||
- include: show_interfaces.yml
|
||||
- include_tasks: show_interfaces.yml
|
||||
|
||||
- name: Install iproute
|
||||
package:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- include: get_current_interfaces.yml
|
||||
- include_tasks: get_current_interfaces.yml
|
||||
- name: Show current_interfaces
|
||||
debug:
|
||||
msg: "current_interfaces: {{ current_interfaces }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue