Skip to content

Commit

Permalink
Merge pull request #3848 from freedomofpress/MakeStagingMacAgain
Browse files Browse the repository at this point in the history
ossec auth key gen. -> platform agnostic
  • Loading branch information
redshiftzero authored Oct 5, 2018
2 parents 2455e4e + c8949cf commit 3c3ef9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_files/ansible-base/roles/ossec/tasks/register.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
# password file (see: https://github.com/ossec/ossec-hids/issues/1472)
- name: Generate authd shared secret
set_fact :
ossec_registration_secret: "{{ lookup('pipe', 'head -c 32 /dev/urandom | md5sum | tr -d \" -\" | sed \"$d\"') }}"
ossec_registration_secret: "{{ range(10000000,99999999999) | random | hash('md5') }}\n"
delegate_to: localhost
delegate_facts: True
when:
Expand Down

0 comments on commit 3c3ef9d

Please sign in to comment.