hursday 09 April 2020 11:57:16 +0800 (0:00:00.309) 0:00:00.309 ********
[WARNING]: Consider using the replace, lineinfile or template module rather than running ‘sed’. If you need to use command because replace, lineinfile or
template is insufficient you can add ‘warn: false’ to this command task or set ‘command_warnings=False’ in ansible.cfg to get rid of this message.
fatal: [ks-allinone]: FAILED! => {
“changed”: true,
“cmd”: [
“sed”,
“-i”,
“/[#]search/s//#/g”,
“/etc/resolv.conf”
],
“delta”: “0:00:00.225290″,
“end”: “2020-04-09 11:57:17.160951″,
“rc”: 4,
“start”: “2020-04-09 11:57:16.935661″
}
STDERR:
sed: cannot rename /etc/sedKVUljW: Operation not permitted
MSG:
non-zero return code