Skip to content

Commit

Permalink
Disable password-based ssh logins while testing
Browse files Browse the repository at this point in the history
  • Loading branch information
major committed Aug 5, 2015
1 parent 7bd2069 commit af72fac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test-rackspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@
user: root
tasks:

# This is mainly to prevent shenanigans with people trying to hop
# into the VM while it's building at travis-ci. ;)
- name: Disable ssh authentication with passwords
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?PasswordAuthentication"
line: "PasswordAuthentication no"

- name: Restart sshd
service:
name: sshd
state: restarted

- name: Install ansible
yum:
name: ansible
Expand Down

0 comments on commit af72fac

Please sign in to comment.