Compare commits

...
3 Commits
Author SHA1 Message Date
DerLinkman 6034238bca fix ssh daemon reload after lockout root 2026-05-26 21:46:28 +02:00
DerLinkman 12ab5a96a2 add sysctl configuration (swappiness) 2026-05-26 21:46:14 +02:00
DerLinkman ab24414656 added galaxy collection requirements 2026-05-26 21:45:56 +02:00
5 changed files with 25 additions and 1 deletions
+3
View File
@@ -26,6 +26,9 @@ COPY ansible-functs.sh /root/.bashrc.d/ansible-functs.sh
RUN chmod +x /root/.bashrc.d/ansible-functs.sh \
&& printf '\n[ -f /root/.bashrc.d/ansible-functs.sh ] && . /root/.bashrc.d/ansible-functs.sh\n' >> /root/.bashrc
COPY requirements.yml /ansible/requirements.yml
RUN ansible-galaxy collection install -r /ansible/requirements.yml
WORKDIR /ansible
CMD ["ansible-playbook", "--version"]
+7
View File
@@ -0,0 +1,7 @@
collections:
- name: ansible.posix
version: 2.2.0
- name: community.general
version: 13.0.1
- name: community.docker
version: 5.2.0
+2
View File
@@ -3,7 +3,9 @@
service:
name: "{{ ssh_service_name | default('sshd') }}"
state: restarted
remote_user: admin
- name: Reload keyboard layout
shell: setupcon
ignore_errors: yes
remote_user: admin
@@ -0,0 +1,9 @@
---
- name: Configure swappiness to reduce swap usage
become: yes
ansible.posix.sysctl:
name: vm.swappiness
value: 10
state: present
reload: yes
when: ansible_facts['virtualization_type'] != "lxc"
+4 -1
View File
@@ -18,4 +18,7 @@
tags: ssh
- import_tasks: setup-bashrc.yml
tags: bashrc
tags: bashrc
- import_tasks: configure-sysctl.yml
tags: sysctl