# ./csrf-flag-changes.yml
- name: set composer_opts for dev env
  set_fact:
     secure: "{{ USE_SSL |bool}}"

- name: change value of secure flag in csrf_config.php file
  become: yes
  become_user: "{{ DEV_SYSTEM_USERNAME }}"
  lineinfile:
    path: "{{ WORKSTATION_DIR }}/config/csrf_config.php"
    # The String to Search
    state: present
    regexp: "^\\s+'secure' =>"
    line: "        'secure' => {{ secure | string | lower }},"
