-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try verifying the csrmake script * Add missing required package
- Loading branch information
1 parent
f5debd7
commit 9b676bc
Showing
2 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
- name: Verify | ||
hosts: all | ||
become: true | ||
tasks: | ||
|
||
- name: Run the csrmake script | ||
shell: | | ||
echo 'devnull@localhost | ||
foo.example.com | ||
CA | ||
Some-state | ||
SomeCity | ||
Internet Widgits Pty Ltd | ||
OrgUnitName | ||
foo.example.com | ||
[email protected] | ||
CompanyName | ||
' | /usr/local/ssl/csrmake_sha256.sh | ||
args: | ||
executable: /bin/bash | ||
|
||
- name: Collect the contents of private dir | ||
find: | ||
paths: /usr/local/ssl/private/ | ||
patterns: '*.key.*' | ||
file_type: file | ||
register: find_result | ||
|
||
- assert: | ||
that: | ||
- find_result.matched == 1 | ||
fail_msg: "No 'key' files were found" | ||
success_msg: "Private key file was generated" |