소스 검색

fixed ssh_hardening function call

panda 2 년 전
부모
커밋
f31119522e
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      common.yml

+ 7 - 5
common.yml

@@ -152,13 +152,15 @@
         mode: '0644'
 
 # Set vm.swappiness to 5 in /etc/sysctl.conf
-- sysctl:
-    name: vm.swappiness
-    value: '0'
-    state: present
+    - sysctl:
+        name: vm.swappiness
+        value: '0'
+        state: present
+        sysctl_file: /etc/sysctl.conf
+
 
 - name: "ssh_hardening"
-  hosts: thismachine
+  hosts: localhost
   connection: local
   roles:
     - ssh_hardening