Add lint configuration and CI and fix the identified errors #14
4 changed files with 11 additions and 10 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
- name: reboot the system
|
||||||
|
become: true
|
||||||
|
ansible.builtin.reboot:
|
|
@ -9,7 +9,5 @@
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
register: apt_update_and_upgrade__upgrade_result
|
register: apt_update_and_upgrade__upgrade_result
|
||||||
|
notify:
|
||||||
- name: reboot, after package upgrade
|
- reboot the system
|
||||||
ansible.builtin.reboot:
|
|
||||||
when: apt_update_and_upgrade__upgrade_result.changed
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
- name: reboot the system
|
||||||
|
become: true
|
||||||
|
ansible.builtin.reboot:
|
|
@ -11,13 +11,10 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
src: sshd_config.j2
|
src: sshd_config.j2
|
||||||
register: deploy_ssh_server_config__ssh_config_copy_result
|
notify:
|
||||||
|
# Reboot instead of just restarting the ssh service, since I don't know how Ansible reacts, when it restarts the service it probably needs for the connection.
|
||||||
|
- reboot the system
|
||||||
|
|
||||||
- name: deactivate short moduli
|
- name: deactivate short moduli
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.tmp && mv /etc/ssh/moduli.tmp /etc/ssh/moduli
|
cmd: awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.tmp && mv /etc/ssh/moduli.tmp /etc/ssh/moduli
|
||||||
|
|
||||||
# Rebooting here instead of restarting the ssh service, since I don't know how Ansible reacts, when it restarts the service it probably needs for the connection.
|
|
||||||
- name: reboot, if ssh server config got changed
|
|
||||||
ansible.builtin.reboot:
|
|
||||||
when: deploy_ssh_server_config__ssh_config_copy_result.changed
|
|
||||||
|
|
Loading…
Reference in a new issue