Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion molecule/common/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
tasks:
- name: Set name of sudo group as fact
ansible.builtin.set_fact:
sudo_group: "{{ 'sudo' if ansible_os_family == 'Debian' else 'wheel' }}"
sudo_group: "{{ 'sudo' if ansible_facts['os_family'] == 'Debian' else 'wheel' }}"

- name: Create group {{ sudo_group }}
ansible.builtin.group:
Expand Down
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Set correct libc flavor
when: ansible_system == 'Linux'
when: ansible_facts['system'] == 'Linux'
block:
- name: Get libc version
ansible.builtin.shell:
Expand All @@ -15,7 +15,7 @@

- name: Set package name as fact
ansible.builtin.set_fact:
nushell_package: "nu-{{ _nushell_version }}-{{ arch_map[ansible_architecture] | default(ansible_architecture) }}-{{ 'unknown-linux-' + libc_flavor if ansible_system == 'Linux' else 'apple-darwin' }}"
nushell_package: "nu-{{ _nushell_version }}-{{ arch_map[ansible_facts['architecture']] | default(ansible_facts['architecture']) }}-{{ 'unknown-linux-' + libc_flavor if ansible_facts['system'] == 'Linux' else 'apple-darwin' }}"

- name: Extract package
ansible.builtin.unarchive:
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
nushell_config_path: "{{ 'Library/Application Support/nushell' if ansible_system == 'Darwin' else '.config/nushell' }}"
nushell_config_path: "{{ 'Library/Application Support/nushell' if ansible_facts['system'] == 'Darwin' else '.config/nushell' }}"
releases_endpoint: https://api.github.com/repos/nushell/nushell/releases
min_glibc_version: '2.32'
arch_map:
Expand Down
Loading