Giter Club home page Giter Club logo

ansible-role-profile_d's Introduction

profile_d Build Status

An Ansible role to manage the current user's Bash or ZSH shell profile via a Debian-like .d directory.

Requirements

Control Node

None

Remote Node

None

Role Defaults

Variable Type Default Value Description
profile_d_shell str "{{ ansible_user_shell }}" The shell to configure.

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

Dev Requirements

  • Ruby 2.7 or later
  • Python 3.8 or later
  • Poetry 1.1 or later

This repository supports asdf for language selection.

Installation

bundle install --path vendor/bundle --jobs 2 --clean && poetry install --remove-untracked

Running linters

poetry run pre-commit

Running tests

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 using bash as the default shell. This suite uses docker to test multiple variants of ubuntu.
  • The zsh suite is aimed at testing against MacOS using zsh as the default shell. This suite uses the exec 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>.

ansible-role-profile_d's People

Contributors

dwsr avatar

Watchers

 avatar  avatar

ansible-role-profile_d's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.