Skip to content

Commit

Permalink
debug: Uncomment out a few other system tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomiguelino committed Oct 26, 2023
1 parent b76f420 commit bb4ee00
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions ansible/roles/system/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,35 @@
tags:
- touches_boot_partition

# TODO NICO: Uncomment the rest of this file gradually.
# - name: Add gpu_mem_512 in config.txt if it doesn't exist
# ansible.builtin.lineinfile:
# path: /boot/config.txt
# line: gpu_mem_512=128
# when: config_txt.stdout.find('gpu_mem_512') == -1
# tags:
# - touches_boot_partition
- name: Add gpu_mem_512 in config.txt if it doesn't exist
ansible.builtin.lineinfile:
path: /boot/config.txt
line: gpu_mem_512=128
when: config_txt.stdout.find('gpu_mem_512') == -1
tags:
- touches_boot_partition

# - name: Add gpu_mem_1024 in config.txt if it doesn't exist
# ansible.builtin.lineinfile:
# path: /boot/config.txt
# line: gpu_mem_1024=196
# when: config_txt.stdout.find('gpu_mem_1024') == -1
# tags:
# - touches_boot_partition
- name: Add gpu_mem_1024 in config.txt if it doesn't exist
ansible.builtin.lineinfile:
path: /boot/config.txt
line: gpu_mem_1024=196
when: config_txt.stdout.find('gpu_mem_1024') == -1
tags:
- touches_boot_partition

# - name: Comment out the original dtoverlay config.
# ansible.builtin.replace:
# dest: /boot/config.txt
# regexp: ^(dtoverlay=vc4-kms-v3d)$
# replace: '#\1'
- name: Comment out the original dtoverlay config.
ansible.builtin.replace:
dest: /boot/config.txt
regexp: ^(dtoverlay=vc4-kms-v3d)$
replace: '#\1'

# - name: Add FKMS config for Pi 4.
# ansible.builtin.lineinfile:
# path: /boot/config.txt
# insertafter: '^\[pi4\]$'
# line: dtoverlay=vc4-fkms-v3d
- name: Add FKMS config for Pi 4.
ansible.builtin.lineinfile:
path: /boot/config.txt
insertafter: '^\[pi4\]$'
line: dtoverlay=vc4-fkms-v3d

# TODO NICO: Uncomment the rest of this file gradually.
# - name: Backup kernel boot args
# ansible.builtin.copy:
# src: /boot/cmdline.txt
Expand Down

0 comments on commit bb4ee00

Please sign in to comment.