Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andre-brongniart/8c9ebe4ae876ea7f9c0aed586d58176c to your computer and use it in GitHub Desktop.
Save andre-brongniart/8c9ebe4ae876ea7f9c0aed586d58176c to your computer and use it in GitHub Desktop.
# loops through items, but item should be a comma separate var list that get's looped through instead of using with_items
- name: manage sudoer extras file
template: src=templates/sudoer_extras/{{ item }}.j2 dest=/etc/sudoers.d/{{ item }} owner=root group=root mode=0440
with_items:
- linuxadmins
- backdevs
- buildadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment