Answer the question
In order to leave comments, you need to log in
ANSIBLE How to pass host variable via ad-hoc and via playbook?
Hello, I googled, but unfortunately I didn’t find it (maybe I was looking, not what I needed):
In general, you need to run the following command on the host:
ip link set {{ ansible_default_ipv4.interface }} txqueuelen 10000
ansible test-server -m command -a "ip link set {{ ansible_default_ipv4.interface }} txqueuelen 10000"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question