Skip to content

Commit

Permalink
rtx -> mise
Browse files Browse the repository at this point in the history
The project got renamed to `mise` to reduce confusion. It's also in
Homebrew mainline now so we don't need to add the tap on macos.
  • Loading branch information
alexblackie committed Jan 9, 2024
1 parent f107c98 commit 073bd42
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 58 deletions.
2 changes: 1 addition & 1 deletion roles/development_workstation/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ third_party_src: "{{ home }}/vendor"

fd_package: fd-find
redis_package: redis
rtx_package: rtx
mise_package: mise
2 changes: 1 addition & 1 deletion roles/development_workstation/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
path: /usr/bin/gawk
when: ansible_facts["os_family"] == "Debian"

- ansible.builtin.import_tasks: rtx.yml
- ansible.builtin.import_tasks: mise.yml
- ansible.builtin.import_tasks: neovim.yml
- ansible.builtin.import_tasks: redis.yml
- ansible.builtin.import_tasks: fzy.yml
Expand Down
46 changes: 46 additions & 0 deletions roles/development_workstation/tasks/mise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
- name: Add mise yum repository
become: true
ansible.builtin.yum_repository:
name: mise
description: mise-en-place
baseurl: https://mise.jdx.dev/rpm
enabled: true
gpgcheck: true
gpgkey: http://mise.jdx.dev/gpg-key.pub
when: ansible_facts["os_family"] == "RedHat"
tags:
- mise

- name: Add mise apt repository
become: true
when: ansible_facts["os_family"] == "Debian"
tags:
- mise
block:
- name: Fetch mise repo signing key
ansible.builtin.get_url:
url: https://mise.jdx.dev/gpg-key.pub
dest: /etc/apt/trusted.gpg.d/mise.asc
checksum: sha256:bf3bedf8b33a9486ba1a2f488b3fc59c6080b7a06fb7e5d3deac3ffa6aaaf2e2
mode: "0644"

- name: Add mise apt repository
when: ansible_architecture == "aarch64"
ansible.builtin.apt_repository:
repo: deb [signed-by=/etc/apt/trusted.gpg.d/mise.asc arch=arm64] https://mise.jdx.dev/deb stable main
state: present

- name: Add mise apt repository
when: ansible_architecture != "aarch64"
ansible.builtin.apt_repository:
repo: deb [signed-by=/etc/apt/trusted.gpg.d/mise.asc arch={{ ansible_architecture }}] https://mise.jdx.dev/deb stable main
state: present

- name: Install mise
become: "{{ elevate_for_package_installation }}"
ansible.builtin.package:
name: "{{ mise_package }}"
state: present
tags:
- mise
56 changes: 0 additions & 56 deletions roles/development_workstation/tasks/rtx.yml

This file was deleted.

0 comments on commit 073bd42

Please sign in to comment.