-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add install mise ruby_manager and ruby (when we get around to this) #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # File: roles/mise/tasks/main.yml | ||
| --- | ||
| - name: Ensure curl is installed | ||
| apt: | ||
| name: curl | ||
| state: present | ||
| update_cache: yes | ||
|
|
||
| - name: Create apt keyrings directory | ||
| file: | ||
| path: /etc/apt/keyrings | ||
| state: directory | ||
| mode: '0755' | ||
|
|
||
| - name: Download mise GPG key | ||
| get_url: | ||
| url: https://mise.jdx.dev/gpg-key.pub | ||
| dest: /etc/apt/keyrings/mise-archive-keyring.asc | ||
| mode: '0644' | ||
|
|
||
| - name: Add mise apt repository | ||
| apt_repository: | ||
| repo: "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.asc] https://mise.jdx.dev/deb stable main" | ||
| filename: mise | ||
| state: present | ||
|
|
||
| - name: Install mise | ||
| apt: | ||
| name: mise | ||
| state: present | ||
| update_cache: yes | ||
|
Comment on lines
+27
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixUpdate the Prompt for AI Agent |
||
|
|
||
| - name: Install ruby versions via mise | ||
| become: yes | ||
| become_user: deploy | ||
| command: mise install ruby@{{ item }} | ||
| args: | ||
| creates: "/home/deploy/.local/share/mise/installs/ruby/{{ item }}" | ||
| loop: "{{ ruby_versions }}" | ||
|
|
||
| - name: Install bundler for each ruby version | ||
| become: yes | ||
| become_user: deploy | ||
| command: mise exec ruby@{{ item }} -- gem install bundler --no-document | ||
| args: | ||
| creates: "/home/deploy/.local/share/mise/installs/ruby/{{ item }}/bin/bundle" | ||
| loop: "{{ ruby_versions }}" | ||
|
Comment on lines
+39
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The role will fail if Suggested FixProvide a default empty list for the loop variable to prevent the run from failing when no versions are defined. Change the loop from Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ianheggie-oaf again, something we care about? |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The
remove_miserole does not uninstall themiseapt package, leaving orphaned packages on systems that switch away from usingmise.Severity: LOW
Suggested Fix
Add a task to the
internal/remove_miserole to uninstall themiseapt package usingapt: name: mise state: absent. Also, consider adding a task to remove themiseapt repository to ensure a complete cleanup.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ianheggie-oaf is this something we care about?