System version
cat /etc/redhat-release
Rocky Linux release 10.0 (Red Quartz)
ansible version
ansible --version
ansible [core 2.18.7]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.12.9 (main, Jun 20 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] (/usr/bin/python3)
jinja version = 3.1.6
libyaml = True
Perform the operation
ansible all -m shell -a '\
CONTAINERD_VERSION=2.1.4; \
ARCH=$(uname -m); \
if [ "$ARCH" = "x86_64" ]; then ARCHITECTURE=amd64; \
elif [ "$ARCH" = "aarch64" ]; then ARCHITECTURE=arm64; \
else echo "Unsupported architecture: $ARCH" && exit 1; fi; \
curl -L -o containerd-${CONTAINERD_VERSION}-linux-${ARCHITECTURE}.tar.gz https://github.com/containerd/containerd/releases/download/v${CONTAINERD_VERSION}/containerd-${CONTAINERD_VERSION}-linux-${ARCHITECTURE}.tar.gz'
k8s-node01 | CHANGED | rc=0 >>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 31.6M 100 31.6M 0 0 972k 0 0:00:33 0:00:33 --:--:-- 3062k
k8s-node02 | CHANGED | rc=0 >>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 31.6M 100 31.6M 0 0 756k 0 0:00:42 0:00:42 --:--:-- 5806k
It took a very long time to complete the execution.
k8s-master01 | CHANGED | rc=0 >>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 31.6M 100 31.6M 0 0 50564 0 0:10:56 0:10:56 --:--:-- 6976k
When downloading the package on the last machine, it took a long time to execute and seemed to get stuck in the command line.
I would like to ask, is this a problem with my network, or is it because my command was not written correctly?