Commit 83e090dd by Carson Gee

Update security check to be smarter

parent 5653be4f
- name: Apply bash security update
- name: Check if we are vulnerable
shell: executable=bash env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
register: test_vuln
- name: Apply bash security update if we are vulnerable
apt: name=bash state=latest update_cache=true
when: "'vulnerable' in test_vuln.stdout"
- name: Check and fail if we are still vulnerable
- name: Check again and fail if we are still vulnerable
shell: executable=bash env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
when: "'vulnerable' in test_vuln.stdout"
register: test_vuln
failed_when: "'vulnerable' in test_vuln.stdout"
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