Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjj committed Jan 25, 2018
1 parent d666b33 commit 3151aa0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@
*~
.idea/
.vscode/
*.retry
29 changes: 0 additions & 29 deletions tests/main.yml

This file was deleted.

23 changes: 23 additions & 0 deletions tests/test.yml
@@ -0,0 +1,23 @@
---

- hosts: "all"

roles:
- "role_under_test"

pre_tasks:
- name: Update APT cache
apt:
update_cache: True
cache_valid_time: 600

post_tasks:
- name: Ensure /etc/ssh/sshd_config contains 'PermitRootLogin no'
command: grep "PermitRootLogin no" /etc/ssh/sshd_config
register: result
changed_when: result.rc != 0

- name: Ensure /etc/ssh/sshd_config contains 'PasswordAuthentication no'
command: grep "PasswordAuthentication no" /etc/ssh/sshd_config
register: result
changed_when: result.rc != 0

0 comments on commit 3151aa0

Please sign in to comment.