Skip to content

Commit

Permalink
Fix Ansible lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Sep 27, 2018
1 parent fb650ad commit 61286cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ Requires `git` on the managed machine (you can easily install it with `geerlingg
Available variables are listed below, along with default values (see `defaults/main.yml`):

dotfiles_repo: "https://github.com/geerlingguy/dotfiles.git"
dotfiles_repo_version: master

The git repository to use for retrieving dotfiles. Dotfiles should generally be laid out within the root directory of the repository.
The git repository and branch/tag/commit hash to use for retrieving dotfiles. Dotfiles should generally be laid out within the root directory of the repository.

dotfiles_repo_accept_hostkey: false

Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
dotfiles_repo: "https://github.com/geerlingguy/dotfiles.git"
dotfiles_repo_version: master
dotfiles_repo_accept_hostkey: false
dotfiles_repo_local_destination: "~/Documents/dotfiles"

Expand Down
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
git:
repo: "{{ dotfiles_repo }}"
dest: "{{ dotfiles_repo_local_destination }}"
version: "{{ dotfiles_repo_version }}"
accept_hostkey: "{{ dotfiles_repo_accept_hostkey }}"
become: false

- name: Ensure all configured dotfiles are links.
shell: "ls -F {{ dotfiles_home }}/{{ item }}"
command: "ls -F {{ dotfiles_home }}/{{ item }}"
register: existing_dotfile_info
failed_when: false
check_mode: false
Expand Down

0 comments on commit 61286cb

Please sign in to comment.