An Ansible role to manage the current user's Bash or ZSH shell profile via a Debian-like .d
directory.
None
None
Variable | Type | Default Value | Description |
---|---|---|---|
profile_d_shell |
str |
"{{ ansible_user_shell }}" |
The shell to configure. |
None
- hosts: my-workstation
roles:
- profile_d
MPL-2.0
This role was created in 2020 by Brandon McNama.
- Ruby
2.7
or later - Python
3.8
or later - Poetry
1.1
or later
This repository supports asdf for language selection.
bundle install --path vendor/bundle --jobs 2 --clean && poetry install --remove-untracked
poetry run pre-commit
This role uses Test Kitchen and Inspec for testing
instead of Molecule. This is done in order to more easily support multiple testing drivers (both
docker
and exec
) to ease testing on multiple operating systems.
There are 2 suites:
- The
default
suite is aimed at testing against Linux hosts usingbash
as the default shell. This suite usesdocker
to test multiple variants ofubuntu
. - The
zsh
suite is aimed at testing against MacOS usingzsh
as the default shell. This suite uses theexec
driver to execute commands against the current host and is intended to be run against a CI runner host, such as in GitHub Actions.
To run tests, run bundle exec poetry run kitchen test <suite name>
.