From 9c1bc71dbf87be9a37ec1c89eb8771cbb89127fb Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 22 Mar 2026 21:15:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20ansible=5Fconf=5Ffrr.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible_conf_frr.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ansible_conf_frr.yml diff --git a/ansible_conf_frr.yml b/ansible_conf_frr.yml new file mode 100644 index 0000000..346770b --- /dev/null +++ b/ansible_conf_frr.yml @@ -0,0 +1,17 @@ +--- +- name: get int name + shell: ip -o addr show to {{ item }} | awk '{print $2}' + register: int_name + + +- name: add interface ip + blockinfile: + path: /etc/frr/frr.conf + block: | + ! + interface {{ int_name.stdout }} + ip address {{ item }} + ip ospf cost 20 + exit + marker: "" + notify: restart frr \ No newline at end of file