Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ galaxy_info:
versions:
- wheezy
- jessie
- name: Amazon
galaxy_tags:
- system
- security
Expand Down
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
control: substack
module_path: password-auth
state: absent
when: ansible_distribution == 'RedHat' or ansible_distribution == 'Oracle Linux'
when: ansible_distribution == 'RedHat' or ansible_distribution == 'Oracle Linux' or ansible_distribution == 'Amazon'

- name: Remove password auth from PAM
replace:
Expand All @@ -84,8 +84,8 @@
replace: '#@include common-auth'
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

when:
- ssh_use_pam
when:
- ssh_use_pam
- ssh_challengeresponseauthentication
- ssh_google_auth

Expand All @@ -111,7 +111,7 @@
failed_when: false
changed_when: false
check_mode: no

# The following tasks only get executed when selinux is in state enforcing, UsePam is "no" and the ssh_password module is installed.
# See this issue for more info: https://github.com/hardening-io/ansible-ssh-hardening/issues/23
- block:
Expand Down