Ensure authconfig is properly configured 34/2134/4
authorAlexandru Antone <Alexandru.Antone@enea.com>
Tue, 17 Dec 2019 09:55:52 +0000 (11:55 +0200)
committerAlexandru Antone <Alexandru.Antone@enea.com>
Tue, 17 Dec 2019 14:05:10 +0000 (16:05 +0200)
Signed-off-by: Alexandru Antone <Alexandru.Antone@enea.com>
Change-Id: I65d1bb54e7e7c96365da98cf5ebf4ca993bb6116

infra-ansible.spec
roles/ops-hardening/tasks/main.yaml

index 57905a0..39e7f74 100644 (file)
@@ -15,7 +15,7 @@
 
 Name:           infra-ansible
 Version:        %{_version}
 
 Name:           infra-ansible
 Version:        %{_version}
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Contains ansible playbook and roles for Akraino rec blueprint
 License:        %{_platform_licence}
 Source0:        %{name}-%{version}.tar.gz
 Summary:        Contains ansible playbook and roles for Akraino rec blueprint
 License:        %{_platform_licence}
 Source0:        %{name}-%{version}.tar.gz
index 5558cd0..3b75d16 100644 (file)
 #
 # Linux Failed password attempts
 #
 #
 # Linux Failed password attempts
 #
+- name: "Ensure authconfig is properly configured"
+  command: authconfig --updateall
+  with_items:
+    - /etc/pam.d/system-auth-ac
+    - /etc/pam.d/password-auth-ac
+  when: not (item|exists and item|is_file)
+  tags:
+    - REC-443
 
 - name: "Set Deny for failed password attempts 1"
   lineinfile:
 
 - name: "Set Deny for failed password attempts 1"
   lineinfile: