Commit 168baaf2 by John Jarvis

replacing linein with sed

parent 0b7f70db
...@@ -108,12 +108,9 @@ ...@@ -108,12 +108,9 @@
# Substitute github mirror in all requirements files # Substitute github mirror in all requirements files
# #
- name: Updating requirements files for git mirror - name: Updating requirement files for git mirror
lineinfile: > command: >
dest={{ item }} "sed -i -e 's/github\.com/{{ GIT_MIRROR }}/g' {{ item }}"
regexp='^(.*)github\.com(.*)$'
line='\1{{ GIT_MIRROR }}\2'
backrefs=yes
with_items: with_items:
- "{{ pre_requirements_file }}" - "{{ pre_requirements_file }}"
- "{{ post_requirements_file }}" - "{{ post_requirements_file }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment