🏑ad-hoc
ansible [pattern] -m [module] -a "[module options]"ansible nodes -m shell -a "echo hello world"
(grup ismi)
ansible nodes -m ansible.builtin.shell -a 'echo $TERM'
ansible nodes -m command -a "hostname" --become --become-user onur
ansible nodes -m shell -a "sudo /bin/systemctl restart iptables" -u onur
sudoers dosyasında onur kullanıcısına yetki vermemiz gerekiyor.Last updated
