From 8065c2ae49823a631e3eef5c30f1530d5fb476cf Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 26 Jan 2022 17:20:54 +0300 Subject: [PATCH] fix ansible facts using for os family and major dist version --- tasks/main.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tasks/main.yaml diff --git a/tasks/main.yaml b/tasks/main.yaml new file mode 100644 index 0000000..7f836f4 --- /dev/null +++ b/tasks/main.yaml @@ -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"