{"id":13541344,"url":"https://github.com/Yethal/ansible-role-nushell","last_synced_at":"2025-04-02T08:31:16.758Z","repository":{"id":180658025,"uuid":"646121141","full_name":"Yethal/ansible-role-nushell","owner":"Yethal","description":"Ansible role that installs nushell on Linux and MacOS systems","archived":false,"fork":false,"pushed_at":"2025-03-13T22:50:20.000Z","size":56,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T23:29:32.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yethal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-27T10:59:21.000Z","updated_at":"2025-01-29T14:48:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"99db8878-f31b-44fe-a6c7-b60b231f6413","html_url":"https://github.com/Yethal/ansible-role-nushell","commit_stats":null,"previous_names":["yethal/ansible-role-nushell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yethal%2Fansible-role-nushell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yethal%2Fansible-role-nushell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yethal%2Fansible-role-nushell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yethal%2Fansible-role-nushell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yethal","download_url":"https://codeload.github.com/Yethal/ansible-role-nushell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246782130,"owners_count":20832976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:00:44.456Z","updated_at":"2025-04-02T08:31:16.753Z","avatar_url":"https://github.com/Yethal.png","language":null,"funding_links":[],"categories":["Integrations"],"sub_categories":[],"readme":"# Ansible Role: Nushell\n\nInstalls Nushell on Linux and macOS systems\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below:\nFor more information about variables marked with an asterisk please read the Caveats section\n\n| Variable               | Description                                                     | Default             |\n| ---------------------- | --------------------------------------------------------------- | ------------------- |\n| nushell_binary_path    | Directory where nushell binary will be stored                   | /usr/local/bin      |\n| nushell_version        | either 'latest' or version tag                                  | latest              |\n| nushell_variant        | either 'default' or 'full'                                      | default             |\n| config_url             | url ansible should download config.nu file from                 | nushell preset file |\n| env_url                | url ansible should download env.nu file from                    | nushell preset file |\n| login_url              | url ansible should download login.nu file from                  | nushell preset file |\n| set_shell              | whether ansible should set nu as default shell of the user\\*    | false               |\n| install_plugins        | whether ansible should install bundled plugins                  | true                |\n| install_configs        | whether ansible should install config files                     | true                |\n| overwrite_configs      | whether ansible should overwrite config files on update         | false               |\n| nu_plugins             | which plugins should be registered by default                   | all plugins         |\n| add_to_profile         | whether ansible should add path to nu to .profile\\*             | false               |\n| disable_banner         | whether built-in nushell banner should be disabled              | false               |\n| nu_users               | List of users for which config and plugins should be registered | []                  |\n| add_hostname_to_prompt | Whether inventory hostname should be added to default prompt    | false               |\n| nu_hostname            | Hostname to add to prompt if `add_hostname_to_prompt` is true   | inventory_hostname  |\n| clear_login_file       | Whether login.nu should be cleared of all non-commented lines   | false               |\n\n## Plugin installation\n\n`plugins` field should be a list of names\n\n## Caveats\n\nSetting user shell to nushell breaks Ansible ssh connection therefore it is not recommended to set `set_shell` parameter to true unless you're using Ansible to provision your local machine or you have a separate user for running Ansible as. As a workaround you can set `add_to_profile` parameter to true which instead will add nushell to autostart for interactive sessions while maintaining compatibility with Ansible\n\n## Dependencies\n\nNone.\n\n## Local testing\n\nAlternatively run `pip install -r requirements.txt` and run automated tests via molecule by running `molecule test`\n\n## Example Playbook\n\n    - hosts: servers\n      roles:\n         - yethal.nushell\n      vars:\n        add_to_profile: true\n        disable_banner: true\n        nu_users:\n            - \"{{ ansible_env.SUDO_USER }}\"\n\n## License\n\nBSD\n\n## Author Information\n\n[yethal](https://github.com/Yethal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYethal%2Fansible-role-nushell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYethal%2Fansible-role-nushell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYethal%2Fansible-role-nushell/lists"}