fix ansible facts using for os family and major dist version

This commit is contained in:
ace 2022-01-26 17:20:54 +03:00
parent 24d2dfc522
commit 8065c2ae49
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0

13
tasks/main.yaml Normal file
View File

@ -0,0 +1,13 @@
---
- name: Set blank routes symbol
command: echo -n
register: echo
changed_when: false
- name: Create array for interfaces to reload
set_fact:
reload_interfaces: []
changed_when: false
- name: Include interfaces configuration tasks
include: "{{ ansible_facts['os_family'] }}/{{ ansible_facts['distribution_major_version'] }}.yaml"