mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-22 03:43:06 +00:00
21 lines
567 B
YAML
21 lines
567 B
YAML
---
|
|
# If the user installs GNU sed through homebrew the path is different.
|
|
- name: Register path to sed.
|
|
command: which sed
|
|
register: sed_which_result
|
|
changed_when: false
|
|
when: sed_path is undefined
|
|
|
|
- name: Define sed_path variable.
|
|
set_fact:
|
|
sed_path: "{{ sed_which_result.stdout }}"
|
|
when: sed_path is undefined
|
|
|
|
# Sudoers configuration (enables more convenient Vagrant usage).
|
|
- name: Copy sudoers configuration into place.
|
|
template:
|
|
src: templates/sudoers.j2
|
|
dest: /etc/sudoers
|
|
mode: 0440
|
|
validate: 'visudo -cf %s'
|
|
become: yes
|