dwsr.profile_d
profile_d 
This is an Ansible role for managing the Bash or ZSH shell profile of the current user using a Debian-like .d directory.
Requirements
Control Node
None needed.
Remote Node
None needed.
Role Defaults
| Variable | Type | Default Value | Description |
|---|---|---|---|
profile_d_shell |
str |
"{{ ansible_user_shell }}" |
The shell that will be configured. |
Dependencies
None.
Example Playbook
- hosts: my-workstation
roles:
- profile_d
License
MPL-2.0
Author Information
This role was created in 2020 by Brandon McNama.
Development
Development Requirements
- Ruby
2.7or later - Python
3.8or later - Poetry
1.1or later
This repository works with asdf for easy language selection.
Installation
Run: bundle install --path vendor/bundle --jobs 2 --clean && poetry install --remove-untracked
Running Linters
Use: poetry run pre-commit
Running Tests
This role uses Test Kitchen and Inspec for testing instead of Molecule, making it easier to support multiple testing methods (docker and exec) for various operating systems.
There are 2 testing suites:
- The
defaultsuite tests against Linux systems usingbashas the main shell. It usesdockerto run tests on different versions ofubuntu. - The
zshsuite tests on MacOS usingzshas the main shell. It uses theexecdriver to run commands on the current host and is meant for testing on CI runners, like in GitHub Actions.
To run tests, use: bundle exec poetry run kitchen test <suite name>.
Informazioni sul progetto
Manages the shell profile of the current user using a Debian-like .d directory
Installa
ansible-galaxy install dwsr.profile_dLicenza
mpl-2.0
Download
124
Proprietario
