Compare commits
3
Commits
f690c6cb3c
...
6034238bca
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6034238bca | ||
|
|
12ab5a96a2 | ||
|
|
ab24414656 |
@@ -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"]
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -18,4 +18,7 @@
|
||||
tags: ssh
|
||||
|
||||
- import_tasks: setup-bashrc.yml
|
||||
tags: bashrc
|
||||
tags: bashrc
|
||||
|
||||
- import_tasks: configure-sysctl.yml
|
||||
tags: sysctl
|
||||
Reference in New Issue
Block a user