Initial commit with not yet working docker networking

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2022-11-30 23:49:07 +01:00
commit 0ab1c043d6
25 changed files with 499 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
---
- name: Copy powertop service
template:
src: templates/powertop.service
dest: /etc/systemd/system/powertop.service
become: true
- name: Reload all services
ansible.builtin.systemd:
daemon_reload: yes
become: true
- name: Start and enable the new powertop service
ansible.builtin.systemd:
state: started
enabled: true
name: powertop
become: true
- name: Copy hdparm.conf
template:
src: templates/hdparm.conf
dest: /etc/hdparm.conf
become: true

View File

@@ -0,0 +1,15 @@
---
- name: Update cache
apt:
update_cache: true
become: true
- name: Install packages
apt:
name: "{{ item }}"
state: present
loop:
- powertop
- hdparm
become: true

View File

@@ -0,0 +1,3 @@
---
- include_tasks: install.yml
- include_tasks: configure.yml