Skip to content

Instantly share code, notes, and snippets.

@drybjed
Created April 16, 2014 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drybjed/10913560 to your computer and use it in GitHub Desktop.
Save drybjed/10913560 to your computer and use it in GitHub Desktop.
---
- hosts: anna
tasks:
- shell: "grep ' / ' /etc/mtab | awk '{print $4}'"
register: mount_options
- debug: var=mount_options
- shell: >
if [[ ",{{ mount_options.stdout }}," != *",acl,"* ]] ; then echo "{{ mount_options.stdout }},acl" ; else echo "{{ mount_options.stdout }}" ; fi
executable=/bin/bash
register: root_options
- debug: var=root_options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment