mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-20 17:59:00 +00:00
14 lines
384 B
YAML
14 lines
384 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: set variable
|
|
set_fact:
|
|
profile_path: /etc/sysconfig/network-scripts/ifcfg-{{ profile }}
|
|
- name: stat profile file
|
|
stat:
|
|
path: "{{ profile_path }}"
|
|
register: profile_stat
|
|
|
|
- assert:
|
|
name: "assert that {{ profile }} is present"
|
|
that: profile_stat.stat.exists
|
|
msg: "profile {{ profile_path }} does not exist"
|