Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Swap out 'command' with 'uri' module
Browse files Browse the repository at this point in the history
  • Loading branch information
msheiny committed Jan 15, 2018
1 parent a51bf52 commit 5dc2ba9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
1 change: 0 additions & 1 deletion tasks/copy_grsecurity_files.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# Not using get_url because it doesn't follow redirects.
- name: Copy grsecurity patch.
copy:
src: "{{ grsecurity_build_patch_filename }}"
Expand Down
31 changes: 13 additions & 18 deletions tasks/fetch_grsecurity_files.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
---
# Not using get_url because it doesn't follow redirects.
- name: Fetch grsecurity patch.
command: >-
curl
--user "{{ grsecurity_build_download_username }}:{{ grsecurity_build_download_password }}"
-L "{{ grsecurity_patch_url }}"
-o "{{ grsecurity_build_download_directory }}/{{ grsecurity_patch_filename }}"
args:
creates: "{{ grsecurity_build_download_directory }}/{{ grsecurity_patch_filename }}"

- name: Fetch grsecurity signature.
command: >-
curl
--user "{{ grsecurity_build_download_username }}:{{ grsecurity_build_download_password }}"
-L "{{ grsecurity_signature_url }}"
-o "{{ grsecurity_build_download_directory }}/{{ grsecurity_signature_filename }}"
args:
creates: "{{ grsecurity_build_download_directory }}/{{ grsecurity_signature_filename }}"
- name: Fetch grsecurity patch and signature
uri:
url: "{{ item.url }}"
force_basic_auth: yes
user: "{{ grsecurity_build_download_username }}"
password: "{{ grsecurity_build_download_password }}"
dest: "{{ item.dest }}"
creates: "{{ item.dest }}"
with_items:
- url: "{{ grsecurity_patch_url }}"
dest: "{{ grsecurity_build_download_directory }}/{{ grsecurity_patch_filename }}"
- url: "{{ grsecurity_signature_url }}"
dest: "{{ grsecurity_build_download_directory }}/{{ grsecurity_signature_filename }}"

0 comments on commit 5dc2ba9

Please sign in to comment.