no trecho
- name: Replace a localhost entry searching for a literal string to avoid escaping ansible.builtin.lineinfile: path: '{{ wp_dir }}/wp-config.php' search_string: "{{ item.search_string }}" line: "{{ item.line }}" with_items: - { search_string: "define( 'AUTH_KEY', 'put your unique phrase here' );", line: "define('AUTH_KEY', 'M1gEa2JY1l}ZpB/SO!9,J2/+1qIkv:|Uamj3ZHq-#e?enUh`mZ~doh{c9j33fs?v');"} o search_string não esta mais suportando. module: search_string Supported parameters include: attributes, backrefs, backup, create, firstmatch, group, insertafter, insertbefore, line, mode, owner, path, regexp, selevel, serole, setype, seuser, state, unsafe_writes, validate"} apos alterar a configuração de search_string para regexp, o ansible funcionou normalente.