mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
That is the following errors are fixed.
'206' # Variables should have spaces before and after: {{ var_name }}
'208' # File permissions unset or incorrect
'301' # Commands should not change things if nothing needs doing
'305' # Use shell only when shell functionality is required
'502' # All tasks should be named
'601' # Don't compare to literal True/False
'602' # Don't compare to empty string
RHELPLAN-73471
Signed-off-by: Noriko Hosoi <nhosoi@redhat.com>
11 lines
295 B
YAML
11 lines
295 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Gather current interface info
|
|
command: ls -1
|
|
args:
|
|
chdir: /sys/class/net
|
|
register: _current_interfaces
|
|
changed_when: false
|
|
- name: Set current_interfaces
|
|
set_fact:
|
|
current_interfaces: "{{ _current_interfaces.stdout_lines }}"
|