- name: edit
shell: sed -i "/login-users/ s|true|false|" /opt/templ.xml
- name: edit
lineinfile:
dest: /opt/templ.xml
regexp: login-users
line: <loginusers>false</login-users>
backrefs: yes
state: present