Playbook #1 |
/root/kubeinit/ci/builds/6mbKNrxD/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: 30 Oct 2023 18:12:16 +0000
- Ended: 30 Oct 2023 18:12:16 +0000
- Duration: 00:00:00.40
- 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.060347 |
end |
2023-10-30 20:12:16.707726 |
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 |
2023-10-30 20:12:16.647379 |
stderr |
|
stderr_lines |
[]
|
stdout |
|
stdout_lines |
[]
|