Playbook #1

/root/kubeinit/ci/builds/6mbKNrxD/0/kubeinit/kubeinit/kubeinit-aux/kubeinit/playbook.yml

Report Status CLI Date Duration Controller User Versions Hosts Plays Tasks Results Files Records
31 Oct 2023 01:55:37 +0000 00:14:45.01 nyctea root Ansible 2.15.2 ara 1.6.1 (client), 1.6.1 (server) Python 3.11.4 5 9 708 708 43 1

Task result details

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.073721
end
2023-10-31 03:58:27.345835
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-31 03:58:27.272114
stderr

stderr_lines
[]
stdout

stdout_lines
[]