fix intel cpu's problem with Panel Self Refresh

This commit is contained in:
Pim Kunis 2023-06-18 20:20:45 +02:00
parent cd6fbf4716
commit a5f002bc42
3 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,4 @@
- name: update grub
become: true
command:
cmd: update-grub

View file

@ -19,49 +19,68 @@
- telegram-desktop - telegram-desktop
- wget - wget
- vlc - vlc
- nextcloud-desktop # - nextcloud-desktop
- name: Install .gitconfig - name: Install .gitconfig
template: template:
src: "{{ role_path }}/templates/.gitconfig.j2" src: "{{ role_path }}/templates/.gitconfig.j2"
dest: ~/.gitconfig dest: ~/.gitconfig
- name: Create repos directory - name: Create repos directory
file: file:
path: ~/repos path: ~/repos
state: directory state: directory
- name: Download Hashicorp signing key - name: Download Hashicorp signing key
become: true become: true
apt_key: apt_key:
keyserver: keyserver.ubuntu.com keyserver: keyserver.ubuntu.com
id: "798AEC654E5C15428C8E42EEAA16FCBCA621E701" id: "798AEC654E5C15428C8E42EEAA16FCBCA621E701"
keyring: /etc/apt/trusted.gpg.d/hashicorp.gpg keyring: /etc/apt/trusted.gpg.d/hashicorp.gpg
- name: Install Hashicorp repository - name: Install Hashicorp repository
become: true become: true
apt_repository: apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/hashicorp.gpg] https://apt.releases.hashicorp.com bookworm main" repo: "deb [signed-by=/etc/apt/trusted.gpg.d/hashicorp.gpg] https://apt.releases.hashicorp.com bookworm main"
register: apt_repository register: apt_repository
- name: Update APT cache - name: Update APT cache
become: true become: true
apt: apt:
update_cache: true update_cache: true
when: apt_repository.changed when: apt_repository.changed
- name: Create ssh config directory - name: Create ssh config directory
file: file:
path: ~/.ssh path: ~/.ssh
state: directory state: directory
mode: 0700 mode: 0700
- name: Copy ssh config - name: Copy ssh config
copy: copy:
src: "{{ role_path }}/files/ssh_config" src: "{{ role_path }}/files/ssh_config"
dest: ~/.ssh/config dest: ~/.ssh/config
mode: 0600 mode: 0600
- name: Copy systemd ssh-agent service - name: Copy systemd ssh-agent service
become: true become: true
template: template:
src: "{{ role_path }}/templates/ssh-agent.service.j2" src: "{{ role_path }}/templates/ssh-agent.service.j2"
dest: /etc/systemd/user/ssh-agent.service dest: /etc/systemd/user/ssh-agent.service
- name: Enable ssh-agent service - name: Enable ssh-agent service
systemd: systemd:
name: ssh-agent name: ssh-agent
enabled: true enabled: true
scope: user scope: user
state: started state: started
- name: Edit grub to disable Panel Self Refresh
become: true
ini_file:
path: /etc/default/grub
section: null
option: "GRUB_CMDLINE_LINUX_DEFAULT"
value: '"quiet splash i915.enable_psr=0"'
no_extra_spaces: true
notify: update grub

View file

@ -2,6 +2,6 @@
email = {{ email }} email = {{ email }}
name = {{ full_name }} name = {{ full_name }}
[core] [core]
editor = /usr/bin/nvim editor = nvim
[init] [init]
defaultBranch = master defaultBranch = master