File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 77 tasks :
88 - name : Set name of sudo group as fact
99 ansible.builtin.set_fact :
10- sudo_group : " {{ 'sudo' if ansible_os_family == 'Debian' else 'wheel' }}"
10+ sudo_group : " {{ 'sudo' if ansible_facts['os_family'] == 'Debian' else 'wheel' }}"
1111
1212 - name : Create group {{ sudo_group }}
1313 ansible.builtin.group :
Original file line number Diff line number Diff line change 11---
22- name : Set correct libc flavor
3- when : ansible_system == 'Linux'
3+ when : ansible_facts['system'] == 'Linux'
44 block :
55 - name : Get libc version
66 ansible.builtin.shell :
1515
1616- name : Set package name as fact
1717 ansible.builtin.set_fact :
18- nushell_package : " nu-{{ _nushell_version }}-{{ arch_map[ansible_architecture] | default(ansible_architecture ) }}-{{ 'unknown-linux-' + libc_flavor if ansible_system == 'Linux' else 'apple-darwin' }}"
18+ 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' }}"
1919
2020- name : Extract package
2121 ansible.builtin.unarchive :
Original file line number Diff line number Diff line change 11---
2- nushell_config_path : " {{ 'Library/Application Support/nushell' if ansible_system == 'Darwin' else '.config/nushell' }}"
2+ nushell_config_path : " {{ 'Library/Application Support/nushell' if ansible_facts['system'] == 'Darwin' else '.config/nushell' }}"
33releases_endpoint : https://api.github.com/repos/nushell/nushell/releases
44min_glibc_version : ' 2.32'
55arch_map :
You can’t perform that action at this time.
0 commit comments