This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_ansible [2024/05/08 06:47] val [ansible-pull] |
сервис_ansible [2024/06/04 13:46] val [Настройка групп управляемых систем] |
||
---|---|---|---|
Line 38: | Line 38: | ||
<code> | <code> | ||
- | debian11# mkdir /etc/ansible/ | + | debian11_12# mkdir /etc/ansible/ |
node1# cat /etc/ansible/hosts | node1# cat /etc/ansible/hosts | ||
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 | ||