Handle root

This commit is contained in:
lhahn committed 2024-07-29 12:18:17 +02:00
1 parent efe72d2582
commit 25b688ec42
3 files changed
+8 -11

No files matched your search

-10
View File
@@ -1,13 +1,4 @@
---
- name: Limit access to cloud home only for root
file:
state: directory
path: "{{ cloud_home }}"
owner: root
group: root
mode: 0700
recurse: yes
- name: Install basic apps via apt
apt:
update_cache: yes
@@ -30,7 +21,6 @@
- name: Setup and configure fail2ban service
import_tasks: fail2ban.yml
- name: Setup mount points
import_tasks: mount.yml
+5
View File
@@ -1,4 +1,9 @@
---
- name: Adjust root password
user:
name: root
password: "{{ root_user_cred }}"
- name: list active users
shell: grep -v "nologin" /etc/passwd | cut -f 1 -d ":"
changed_when: false