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
- Host: GitHub
- URL: https://github.com/djuuu/ansible-role-dotfiles
- Owner: Djuuu
- License: other
- Created: 2024-11-03T17:22:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-03T17:23:21.000Z (over 1 year ago)
- Last Synced: 2025-03-24T00:49:06.759Z (over 1 year ago)
- Topics: ansible, ansible-role, dotfiles
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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