title: Ansible replace text in file
body: <p>So ive been tasked with replaceing zabbix server. To do so i have to modify zabbix_agent file in all server and there are many. Tho in this job is the first time i see ansible so i need some help. And i am using ansible-playbook.</p>
  
  <p>In zabbix_agentd.conf file there is the old zabbix conf:</p>
  
  <pre><code>HostMetadata=Linux
  PidFile=/var/run/zabbix/zabbx_agentd.pid
  LogFile=/var/log/zabbix/zabbix_agentd.log
  LogFileSize=0
  Server=zabbix.company.com
  ServerActive=zabbix.company.com
  HostnameItem=system.hostname
  Include=/etc/zabbix_agentd.d/
  </code></pre>
  
  <p>Now i need to replace "Server" and "ServerActive" to "zabbix2.company.com"</p>
  
  <p>I have tried various codes from this page to work for my needs but so far it has failed. No clue what im doing wrong</p>