diff options
Diffstat (limited to 'roles/slim/raspbian/tasks/main.yml')
-rw-r--r-- | roles/slim/raspbian/tasks/main.yml | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/roles/slim/raspbian/tasks/main.yml b/roles/slim/raspbian/tasks/main.yml deleted file mode 100644 index 39b0c66f..00000000 --- a/roles/slim/raspbian/tasks/main.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -- name: remove legacy device-tree overlays for rpi3 - loop: - - pi3-disable-wifi - - pi3-disable-bt - lineinfile: - path: /boot/config.txt - line: "dtoverlay={{ item }}" - state: absent - -- name: enable/disable bluetooh - lineinfile: - path: /boot/config.txt - line: dtoverlay=disable-bt - insertafter: '^\[all\]' - state: "{{ raspbian_disable_bluetooth | ternary('present', 'absent') }}" - -- name: enable/disable wifi - lineinfile: - path: /boot/config.txt - line: dtoverlay=disable-wifi - insertafter: '^\[all\]' - state: "{{ raspbian_disable_wifi | ternary('present', 'absent') }}" - -- name: enable/disable bluetooh - lineinfile: - path: /boot/config.txt - line: dtoverlay=disable-bt - insertafter: '^\[all\]' - state: "{{ raspbian_disable_bluetooth | ternary('present', 'absent') }}" - -- name: enable/disable audio - lineinfile: - path: /boot/config.txt - regexp: '^dtparam=audio=' - line: "dtparam=audio={{ raspbian_disable_audio | ternary('off', 'on') }}" - -- name: enable ssh-server - systemd: - name: ssh - enabled: yes - -- name: remove pi user - user: - name: pi - state: absent - remove: yes - force: yes - -- name: remove sudoers config for pi user - file: - path: /etc/sudoers.d/010_pi-nopasswd - state: absent - -- name: set hostname - hostname: - name: "{{ host_name }}" - -- name: update hostname in /etc/hosts - lineinfile: - path: /etc/hosts - backrefs: yes - regexp: '^(127.0.1.1\s+)' - line: '\g<1>{{ host_name }}' - -- name: remove vscode sources.list and microsoft gpg key - loop: - - sources.list.d/vscode.list - - trusted.gpg.d/microsoft.gpg - file: - path: "/etc/apt/{{ item }}" - state: absent |