aboutsummaryrefslogtreecommitdiff
path: root/roles/veth
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2026-01-07 11:10:37 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2026-01-09 08:34:19 +0000
commitc8ea844b2b31cfc0446b6174e6b033a4036b9750 (patch)
tree29d2ef8215f7b7b5a426ff6e34bfdcc160bcd542 /roles/veth
parent7d89d6afbef6fcb352c30f9fe04a72fbeca1f18f (diff)
downloadkolla-ansible-c8ea844b2b31cfc0446b6174e6b033a4036b9750.tar.gz
kolla-ansible-c8ea844b2b31cfc0446b6174e6b033a4036b9750.zip
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 <mnasiadka@gmail.com>
Diffstat (limited to 'roles/veth')
-rw-r--r--roles/veth/tasks/main.yml12
1 files changed, 9 insertions, 3 deletions
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