An open API service indexing awesome lists of open source software.

https://github.com/djuuu/ansible-role-dotfiles

Install dotfiles @ https://github.com/Djuuu/dotfiles
https://github.com/djuuu/ansible-role-dotfiles

ansible ansible-role dotfiles

Last synced: 2 months ago
JSON representation

Install dotfiles @ https://github.com/Djuuu/dotfiles

Awesome Lists containing this project

README

          

Ansible Role: Dotfiles
======================

Install dotfiles @ https://github.com/Djuuu/dotfiles

Role Variables
--------------

Available role variables are listed below, along with default values (see `defaults/main.yml`):

```yaml
dotfiles_repo: "{{ dotfiles_clone_use_ssh | ternary(dotfiles_repo_ssh, dotfiles_repo_https) }}"

dotfiles_repo_https: https://github.com/Djuuu/dotfiles.git
dotfiles_repo_ssh: git@github.com:Djuuu/dotfiles.git

dotfiles_clone_use_ssh: false

dotfiles_repo_version: master

dotfiles_repo_local_destination: ~/.dotfiles

dotfiles_force_reset: false

dotfiles_backup: false

dotfiles_install_command: "{{ dotfiles_repo_local_destination }}/install"

dotfiles_gitconfig: []
#- { option: 'name', value: me }
#- { option: 'email', value: me@example.net }
```

Dependencies
------------

None.

Example Playbook
----------------

```yaml
- hosts: all
roles:
- djuuu.dotfiles
```

Example for multiple users:
```yaml
- hosts: all

vars:
dotfiles_users:
- example
- root

tasks:
- name: Install dotfiles
loop: "{{ dotfiles_users | default([ansible_user]) }}"
loop_control:
loop_var: dotfiles_user
vars:
ansible_become: "{{ dotfiles_user != 'ansible_user' }}"
ansible_become_user: "{{ dotfiles_user }}"
ansible.builtin.include_role:
name: djuuu.dotfiles
```

License
-------

Beerware License