Playbook #1 |
/root/kubeinit/ci/builds/bsU8uCNn/0/kubeinit/kubeinit/kubeinit-aux/kubeinit/playbook.yml |
Task result details
- Play: Run the deployment on the target infrastructure (OpenStack/libvirt hypervisors)
- Task: kubeinit.kubeinit.kubeinit_libvirt : Configuring NAT
- Action: ansible.builtin.shell
- Path: /root/.ansible/collections/ansible_collections/kubeinit/kubeinit/roles/kubeinit_libvirt/tasks/create_network.yml:489
- Host: localhost ( task delegated to hypervisor-01 )
- Status: changed
- Started: 05 May 2024 01:35:42 +0000
- Ended: 05 May 2024 01:35:42 +0000
- Duration: 00:00:00.41
- Tags:
- task_create_network
Field | Value |
---|---|
changed |
True |
cmd |
set -eo pipefail # # NAT from the external interface # # Get the external interface name iface=$(ip route get "8.8.8.8" | grep -Po '(?<=(dev )).*(?= src| proto)') # iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o $iface -j MASQUERADE # iptables -A FORWARD -i $iface -j ACCEPT iptables -A FORWARD -i br-ex -j ACCEPT iptables -A FORWARD -o $iface -j ACCEPT iptables -A FORWARD -o br-ex -j ACCEPT # iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT # iptables -P FORWARD ACCEPT iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT |
delta |
0:00:00.068423 |
end |
2024-05-05 04:35:42.970739 |
invocation |
{ "module_args": { "_raw_params": "set -eo pipefail\n#\n# NAT from the external interface\n#\n# Get the external interface name\niface=$(ip route get \"8.8.8.8\" | grep -Po '(?<=(dev )).*(?= src| proto)')\n#\niptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o $iface -j MASQUERADE\n#\niptables -A FORWARD -i $iface -j ACCEPT\niptables -A FORWARD -i br-ex -j ACCEPT\niptables -A FORWARD -o $iface -j ACCEPT\niptables -A FORWARD -o br-ex -j ACCEPT\n#\niptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT\n#\niptables -P FORWARD ACCEPT\niptables -P INPUT ACCEPT\niptables -P OUTPUT ACCEPT\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
msg |
|
rc |
0 |
start |
2024-05-05 04:35:42.902316 |
stderr |
|
stderr_lines |
[]
|
stdout |
|
stdout_lines |
[]
|