1
0
forked from infra/ansible

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
service: name=systemd-journald state=restarted
- name: Restart sshd
service: name=sshd state=restarted
- name: update-grub
command: update-grub
- name: update-initramfs
command: update-initramfs -u -k all
- name: restart sshd
service:
name: sshd
state: restarted
listen: "restart sshd"

View File

@ -103,13 +103,11 @@
replace: "rotate 7"
loop: "{{ logrotateconfigpaths }}"
- name: copy files/configs
- name: Configure ssh password login
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
src: sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0644'
with_items:
- { src: 'sshd_config.j2', dest: '/etc/ssh/sshd_config' }
notify: "restart sshd"
notify: Restart sshd