Change some packages around, disable britty

This commit uses the sudoers module from community.general, switches to
the deb version of Slack provided by Pop OS, and disables britty so that
it doesn't keep me from flashing ESP devices
This commit is contained in:
Gene Liverman 2022-07-08 21:32:16 -04:00
parent fd079fbed2
commit 0ba4423ab7
No known key found for this signature in database
GPG key ID: 3AF83985B6C857C6

View file

@ -119,7 +119,7 @@
- boinctui - boinctui
- bundler - bundler
- cmake - cmake
- code - code # provided by Pop OS repos
- dconf-editor - dconf-editor
- dos2unix - dos2unix
- exa - exa
@ -129,6 +129,7 @@
- gnupg - gnupg
- google-cloud-cli - google-cloud-cli
- google-cloud-cli-gke-gcloud-auth-plugin - google-cloud-cli-gke-gcloud-auth-plugin
- gthumb
- htop - htop
- httpie - httpie
- hub - hub
@ -149,6 +150,7 @@
- scdaemon - scdaemon
- scaleft-client-tools - scaleft-client-tools
- scaleft-url-handler - scaleft-url-handler
- slack-desktop # provided by Pop OS repos
- snapd - snapd
- tailscale - tailscale
- terraform - terraform
@ -226,7 +228,6 @@
community.general.snap: community.general.snap:
name: name:
- cctv-viewer # only available here - cctv-viewer # only available here
- slack # official version
- name: Snaps requiring classic mode - name: Snaps requiring classic mode
become: true become: true
@ -309,10 +310,28 @@
- name: Add passwordless sudo entries - name: Add passwordless sudo entries
become: true become: true
jonellis.sudoers.sudoers: community.general.sudoers:
name: "{{ lookup('env', 'USER') }}-no-password" name: "{{ lookup('env', 'USER') }}-no-password"
user: "{{ lookup('env', 'USER') }}" user: "{{ lookup('env', 'USER') }}"
nopassword: true nopassword: true
command: commands:
- /usr/bin/systemctl restart pcscd - /usr/bin/systemctl restart pcscd
- /usr/bin/pkill -9 gpg-agent - /usr/bin/pkill -9 gpg-agent
- name: Disable britty so ESPHome flashing works
become: true
ansible.builtin.shell:
cmd: |
for f in /usr/lib/udev/rules.d/*brltty*.rules; do
if [ ! -L "/etc/udev/rules.d/$(basename "$f")" ]; then
ln -s /dev/null "/etc/udev/rules.d/$(basename "$f")"
udevadm control --reload-rules
fi
done
- name: Disable brltty service
become: true
ansible.builtin.service:
name: brltty.service
enabled: false
state: stopped