Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ansible roles collection

https://travis-ci.com/n-batalha/ansible-roles.svg?branch=master

See introductory blog post.

Roles

  • direnv
  • git
  • i3
  • pipenv
  • haskell stack
  • git-subrepo
  • firefox-developer-edition (forked from @conorsch)

Supported distributions

  • Fedora 29

Ubuntu might work (as roles often consider it) but it is not currently tested. Please open a ticket if interested, or submit a Pull Request.

Warning

This is a monorepo with multiple Ansible roles which isn't currently natively supported by Ansible. While this support will come with Mazer, Mazer is currently experimental and breaking too often to be used even in less critical setups. Instead we rely on a common undocumented feature of stable Ansible until it is replaced by Mazer.

How to use

Because pipenv might not yet be installed (as it is a role we provide), we just assume Python 3 is:

python3 -m venv ~/.virtualenvs/n-batalha-roles
. ~/.virtualenvs/n-batalha-roles/bin/activate
pip install -r requirements.txt

echo "\
- src: git@github.com:n-batalha/ansible-roles.git
  scm: git
  name: ansible-roles
  version: master\
" >> requirements.yml

# we ignore errors because of the temporary monorepo setup discussed above
ansible-galaxy install --roles-path ~/.ansible/roles/ --ignore-errors --force -r requirements.yml

Now you can refer to the roles in your playbook like this:

- hosts: localhost
  roles:
    - role: ansible-roles/roles/git
      vars:
           email: "your_email@email.com"
           user_name_long: Your Name Here
           git_settings:
             - name: core.editor
               value: nano
             - name: user.name
               value: "{{ user_name_long }}"
             - name: user.email
               value: "{{ email }}"
             - name: alias.ch
               value: checkout
    - role: ansible-roles/roles/direnv

To update, simply rerun the install command above.

Contributing

Please see CONTRIBUTING.

About

Collection of personal but reusable ansible roles

Resources

License

Releases

No releases published

Packages

No packages published