1. 程式人生 > >ansible常用模組例項

ansible常用模組例項

blockinfile

檔案中某行後插入多行

[[email protected]] /opt/software$ ansible test[1:2] -m blockinfile -a 'dest=/usr/local/kafka/config/zookeeper.properties insertafter=maxClientCnxns block="tickTime=2000\ninitLimit=10\nsyncLimit=5"'