Browse code

Add implementation

Robert Cranston authored on 17/08/2018 13:48:21
Showing 1 changed files
... ...
@@ -2,11 +2,50 @@
2 2
 
3 3
 An [Ansible][] [role][] for deploying [dotfile][]s on [Unix-like][]s.
4 4
 
5
+Takes [Git][] repository [URL][]s in the variable `dotfiles`, clones them into
6
+subdirectories of `$HOME/.dotfiles` (overridable with the variable
7
+`dotfiles_dir`) and uses [`stow`][] (which must be present on the target
8
+system!) to [symlink][] the contents into the parent directory of
9
+`dotfiles_dir` (overridable with the variable `dotfiles_target`).
10
+
5 11
 [`ansible-role-dotfiles`]: https://git.rcrnstn.net/rcrnstn/ansible-role-dotfiles
6 12
 [Ansible]: https://docs.ansible.com/ansible
7 13
 [role]: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html
8 14
 [dotfile]: https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments
9 15
 [Unix-like]: https://en.wikipedia.org/wiki/Unix-like
16
+[Git]: https://git-scm.com
17
+[URL]: https://en.wikipedia.org/wiki/URL
18
+[symlink]: https://en.wikipedia.org/wiki/Symbolic_link
19
+[`stow`]: https://www.gnu.org/software/stow/
20
+
21
+## Usage
22
+
23
+Example [`requirements.yml`][]:
24
+
25
+```yaml
26
+---
27
+
28
+roles:
29
+  - name: 'dotfiles'
30
+    src: 'https://git.rcrnstn.net/rcrnstn/ansible-role-dotfiles'
31
+    scm: 'git'
32
+```
33
+
34
+Example [playbook][]:
35
+
36
+```yaml
37
+---
38
+
39
+- hosts: 'all'
40
+  roles:
41
+    - role: 'dotfiles'
42
+      dotfiles:
43
+        - 'https://github.com/user/dotfiles-program1'
44
+        - 'https://github.com/user/dotfiles-program2'
45
+```
46
+
47
+[`requirements.yml`]: https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-multiple-roles-from-a-file
48
+[playbook]: https://docs.ansible.com/ansible/latest/user_guide/playbooks.html
10 49
 
11 50
 ## License
12 51
 
Browse code

Add license

Robert Cranston authored on 17/01/2022 01:09:21
Showing 1 changed files
... ...
@@ -7,3 +7,11 @@ An [Ansible][] [role][] for deploying [dotfile][]s on [Unix-like][]s.
7 7
 [role]: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html
8 8
 [dotfile]: https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments
9 9
 [Unix-like]: https://en.wikipedia.org/wiki/Unix-like
10
+
11
+## License
12
+
13
+Licensed under the [ISC License][] unless otherwise noted, see the
14
+[`LICENSE`][] file.
15
+
16
+[ISC License]: https://choosealicense.com/licenses/isc/
17
+[`LICENSE`]: LICENSE
Browse code

Add readme

Robert Cranston authored on 12/08/2018 15:22:09
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+# [`ansible-role-dotfiles`][]
2
+
3
+An [Ansible][] [role][] for deploying [dotfile][]s on [Unix-like][]s.
4
+
5
+[`ansible-role-dotfiles`]: https://git.rcrnstn.net/rcrnstn/ansible-role-dotfiles
6
+[Ansible]: https://docs.ansible.com/ansible
7
+[role]: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html
8
+[dotfile]: https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory#Unix_and_Unix-like_environments
9
+[Unix-like]: https://en.wikipedia.org/wiki/Unix-like