dwsr.profile_d

profile_d Build Status

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.7 or later
  • Python 3.8 or later
  • Poetry 1.1 or 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 default suite tests against Linux systems using bash as the main shell. It uses docker to run tests on different versions of ubuntu.
  • The zsh suite tests on MacOS using zsh as the main shell. It uses the exec driver 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_d
Licenza
mpl-2.0
Download
116
Proprietario