This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
сервис_ansible [2024/05/08 06:47] val [ansible-pull] |
сервис_ansible [2024/06/01 10:48] val [Использование модулей] |
||
---|---|---|---|
Line 111: | Line 111: | ||
kube1# ansible kubes -a 'swapoff -a' | kube1# ansible kubes -a 'swapoff -a' | ||
ИЛИ | ИЛИ | ||
- | (venv1) server# ansible all -a 'sed -i"" -e "/swap/s/^/#/" /etc/fstab' -i /root/kubespray/inventory/mycluster/hosts.yaml #--limit=kube4 | + | (venv1) server# ansible all -a 'sed -i"" -e "/swap/s/^/#/" /etc/fstab' -i /root/kubespray/inventory/mycluster/hosts.yaml #--limit=kube4,kube5 |
(venv1) server# ansible all -a 'swapoff -a' -i /root/kubespray/inventory/mycluster/hosts.yaml #--limit=kube4 | (venv1) server# ansible all -a 'swapoff -a' -i /root/kubespray/inventory/mycluster/hosts.yaml #--limit=kube4 | ||