From c8ea844b2b31cfc0446b6174e6b033a4036b9750 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 7 Jan 2026 11:10:37 +0100 Subject: ansible-lint: Rework validate-all-file into custom rules Test roles/ subdirectories as well (used by Zuul) In addition to that container_exec_become will also fail when "docker exec" or "podman exec" will be used instead of "{{ kolla_container_engine }} exec" Generated-By: Claude Change-Id: I75c1e48c36bb0284e2927b1cb354ce9ec47967d7 Signed-off-by: Michal Nasiadka --- roles/veth/tasks/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'roles/veth') diff --git a/roles/veth/tasks/main.yml b/roles/veth/tasks/main.yml index 034fec675..2b5556dbe 100644 --- a/roles/veth/tasks/main.yml +++ b/roles/veth/tasks/main.yml @@ -1,12 +1,18 @@ --- - name: Create veth pair become: true - command: ip link add {{ veth_pair.0 }} type veth peer name {{ veth_pair.1 }} + ansible.builtin.command: + cmd: ip link add {{ veth_pair.0 }} type veth peer name {{ veth_pair.1 }} + changed_when: true - name: Bring veth pair up become: true - shell: ip link set {{ veth_pair.0 }} up && ip link set {{ veth_pair.1 }} up + ansible.builtin.shell: + cmd: ip link set {{ veth_pair.0 }} up && ip link set {{ veth_pair.1 }} up + changed_when: true - name: Add first veth pair port to bridge become: true - command: ip link set {{ veth_pair.0 }} master {{ bridge_name }} + ansible.builtin.command: + cmd: ip link set {{ veth_pair.0 }} master {{ bridge_name }} + changed_when: true -- cgit v1.2.3