Skip to content

Instantly share code, notes, and snippets.

@universal
Created June 21, 2013 10:04
Show Gist options
  • Save universal/5830229 to your computer and use it in GitHub Desktop.
Save universal/5830229 to your computer and use it in GitHub Desktop.
recursive directory creation, only last directory has owner and group set
---
- hosts: some_host
user: some_user
sudo: yes
tasks:
- name: ensure backup gem is installed
gem: name=backup state=present
- name: ensure Backup dir is present
file: state=directory path=/home/git/Backup/models owner=git group=git recurse=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment