mac-dev-playbook/tasks/sudoers.yml
2017-06-01 10:08:35 -05:00

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