Skip to content

Commit

Permalink
ansible lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowfx committed May 1, 2024
1 parent 56ac95e commit 0d247c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ make -C ~/.dotfiles
- web browser: chromium (Linux), safari / google chrome (macOS)
- window manager: i3 (X11), sway (Wayland)
- terminal multiplexer: tmux
- text editor: vim (terminal), vscode (lightweight IDE), intellij (heavyweight IDE)
- text editor: vim (terminal), zed (lightweight editor), vscode (heavyweight IDE)
9 changes: 5 additions & 4 deletions roles/iterm2-shell-integration/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# Enables iterm2 Shell Integration: https://iterm2.com/documentation-shell-integration.html
---
- name: Check if iTerm2 shell integration files exist
find:
ansible.builtin.find:
hidden: true
paths: "{{ ansible_env.HOME }}"
patterns: ".iterm2_shell_integration*"
register: iterm2_integration_files

- name: Set register variable if iTerm2 shell integration files exist
set_fact:
ansible.builtin.set_fact:
iterm2_integration_exists: "{{ iterm2_integration_files.matched }}"

- name: Download iTerm2 shell integration script
get_url:
ansible.builtin.get_url:
url: "https://iterm2.com/misc/install_shell_integration.sh"
dest: "{{ ansible_env.HOME }}/"
mode: '0755'
when: not iterm2_integration_exists

- name: Run iTerm2 shell integration script
command: "{{ ansible_shell_executable }} {{ ansible_env.HOME }}/install_shell_integration.sh"
ansible.builtin.command: "{{ ansible_shell_executable }} {{ ansible_env.HOME }}/install_shell_integration.sh"
when: not iterm2_integration_exists
3 changes: 2 additions & 1 deletion roles/macos/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@

- name: sudo integration with touch id
become: true
lineinfile:
ansible.builtin.lineinfile:
create: true
mode: '0444'
path: /etc/pam.d/sudo
regexp: 'auth\s+sufficient\s+pam_tid.so'
line: 'auth sufficient pam_tid.so'

0 comments on commit 0d247c6

Please sign in to comment.