- name: Replace Clone OCSP specific changes 
  replace: dest={{item}} regexp="ocsppki_https_port" replace={{ocsppki_https_port}}
  with_items:
  - /tmp/test_dir/ocsp_clone.cfg
  - /tmp/test_dir/constants.py

- name: Replace http port for Clone OCSP.
  replace: dest={{item}} regexp="ocsppki_http_port" replace={{ocsppki_http_port}}
  with_items:
  - /tmp/test_dir/ocsp_clone.cfg
  - /tmp/test_dir/constants.py

- name: Replace ajp port for Clone OCSP
  replace: dest={{item}} regexp="ocsppki_ajp_port" replace={{ocsppki_ajp_port}}
  with_items:
  - /tmp/test_dir/ocsp_clone.cfg
  - /tmp/test_dir/constants.py

- name : Replace tomcat port for Clone OCSP
  replace: dest={{item}} regexp="ocsppki_tomcat_server_port" replace={{ocsppki_tomcat_server_port}}
  with_items:
  - /tmp/test_dir/ocsp_clone.cfg
  - /tmp/test_dir/constants.py

- name : Replace Secure port for clone OCSP
  replace: dest={{item}} regexp="secure_domain_port" replace={{capki_https_port}}
  with_items:
  - /tmp/test_dir/ocsp_clone.cfg
  - /tmp/test_dir/constants.py

- name: Replace issuing CA port for Clone OCSP
  replace: dest={{item}} regexp="capki_https_port" replace={{capki_https_port}}
  with_items:
  - /tmp/test_dir/ocsp_clone.cfg
  - /tmp/test_dir/constants.py

- name: Replace BaseDN for Clone OCSP
  replace: dest={{item}} regexp="BaseDNname" replace={{topology}}-OCSP-OCSP
  with_items:
  - /tmp/test_dir/ocsp_clone.cfg
  - /tmp/test_dir/constants.py
