ansible/dev-playbook.yml
2025-08-27 02:28:58 +00:00

81 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- hosts: dev
become: true
roles:
- maintenance
- base
- development
- shell
- docker
- ssh
- user
tasks:
- name: Update apt cache
apt:
update_cache: yes
- name: Enable 'universe' repo on Ubuntu (needed for snapd)
command: add-apt-repository universe
when: ansible_facts['os_family'] == "Debian"
changed_when: false
ignore_errors: true
- name: Install Redshift
apt:
name: redshift
state: present
- name: Add Brave's APT key
apt_key:
url: https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
state: present
- name: Add Brave repo
apt_repository:
repo: 'deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main'
filename: brave-browser
state: present
- name: Install Brave browser
apt:
name: brave-browser
state: present
- name: Remove Mints nosnap.pref block
file:
path: /etc/apt/preferences.d/nosnap.pref
state: absent
- name: Update apt cache
apt:
update_cache: yes
- name: Install Snap daemon
apt:
name: snapd
state: present
- name: Force Ansible to reload facts
setup:
- name: Install Cursor
community.general.snap:
name: cursor
state: present
- name: Install VSCode
community.general.snap:
name: code
classic: true
state: present
- name: Install LibreOffice
apt:
name: libreoffice
state: present
- name: Install PDF reader (Evince)
apt:
name: evince
state: present