aboutsummaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-rw-r--r--tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
new file mode 100644
index 0000000..7735f17
--- /dev/null
+++ b/tasks/main.yml
@@ -0,0 +1,9 @@
+---
+- name: Disable PasswordAuthentication
+ lineinfile:
+ path: /etc/ssh/sshdd_config
+ regexp: "^[#]? PasswordAuthentication"
+ line: "PasswordAuthentication no"
+ tags:
+ - ssh
+