Automated changes from linter ;P

This commit is contained in:
Mark Janssen 2024-07-11 20:47:52 +02:00
parent 44b73a216f
commit f7f04e7a41
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
65 changed files with 392 additions and 324 deletions

View file

@ -1,6 +1,6 @@
---
- name: Add user
user:
ansible.builtin.user:
name: bank
password: $6$idklol$QrOE/21LDR0vhZBAXwgA7AvnmR6Ju4ZqzAzgeazC08i2yw9kyQjgwu.uuV692iL/cyE7AteDYUxCpcorONXom. # "bank"
home: /home/{{ bank_user }}
@ -8,7 +8,7 @@
update_password: always
- name: Allow password auth for bank user
blockinfile:
ansible.builtin.blockinfile:
path: /etc/ssh/sshd_config
insertafter: EOF
block: |-
@ -17,12 +17,12 @@
notify: reload sshd
- name: Clear motd
copy:
ansible.builtin.copy:
content: ""
dest: /etc/motd
- name: Remove autologin
file:
ansible.builtin.file:
path: /etc/systemd/system/getty@tty1.service.d/override.conf
state: absent
notify: daemon reload
@ -31,19 +31,20 @@
- when: bank_local_tty
block:
- name: Locate agetty
command: command -v agetty
ansible.builtin.command:
cmd: command -v agetty
register: agetty_location_cmd
- set_fact:
- ansible.builtin.set_fact:
agetty_location: "{{ agetty_location_cmd.stdout_lines | join }}"
- name: Create getty dir
file:
ansible.builtin.file:
path: /etc/systemd/system/getty@tty1.service.d
state: directory
- name: Autologin User
template:
ansible.builtin.template:
src: tty_autologin.conf
dest: /etc/systemd/system/getty@tty1.service.d/override.conf
owner: root