common: fix style

This commit is contained in:
Markus 2022-09-02 14:53:05 +02:00
parent 4dd1f87e73
commit b710872b20
2 changed files with 9 additions and 14 deletions

View File

@ -6,14 +6,11 @@
- name: Restart journald - name: Restart journald
service: name=systemd-journald state=restarted service: name=systemd-journald state=restarted
- name: Restart sshd
service: name=sshd state=restarted
- name: update-grub - name: update-grub
command: update-grub command: update-grub
- name: update-initramfs - name: update-initramfs
command: update-initramfs -u -k all command: update-initramfs -u -k all
- name: restart sshd
service:
name: sshd
state: restarted
listen: "restart sshd"

View File

@ -102,14 +102,12 @@
regexp: "rotate [0-9]+" regexp: "rotate [0-9]+"
replace: "rotate 7" replace: "rotate 7"
loop: "{{ logrotateconfigpaths }}" loop: "{{ logrotateconfigpaths }}"
- name: copy files/configs - name: Configure ssh password login
template: template:
src: "{{ item.src }}" src: sshd_config.j2
dest: "{{ item.dest }}" dest: /etc/ssh/sshd_config
owner: root owner: root
group: root group: root
mode: '0644' mode: '0644'
with_items: notify: Restart sshd
- { src: 'sshd_config.j2', dest: '/etc/ssh/sshd_config' }
notify: "restart sshd"