# Change value of cache.memcached.backend
- name: change value of cache.memcached.backend in /application/configs/config.ini file
  become: yes
  become_user: "{{ DEV_SYSTEM_USERNAME }}"
  lineinfile:
    path: "{{ WORKSTATION_DIR }}/application/configs/config.ini"
    # The string to search
    regexp: "cache.memcached.backend = 'File'" 
    # The string to replace
    line: "cache.memcached.backend = 'Memcached'"

# Change value of doctrine.resultscache.memcached.servers.host
- name: change value of doctrine.resultscache.memcached.servers.host in /application/configs/doctrine.ini file
  become: yes
  become_user: "{{ DEV_SYSTEM_USERNAME }}"
  lineinfile:
    path: "{{ WORKSTATION_DIR }}/application/configs/doctrine.ini"
    # The string to search
    regexp: "doctrine.resultscache.memcached.servers.host = localhost" 
    # The string to replace
    line: "doctrine.resultscache.memcached.servers.host = {{ MEMCACHE_HOST }}"
