Skip to content

Instantly share code, notes, and snippets.

View mdahlke's full-sized avatar
👋
Working from home

Michael mdahlke

👋
Working from home
View GitHub Profile
@asmacdo
asmacdo / main.yml
Created August 1, 2014 14:47
Create multiple directories with ansible
- name: Make sure the sites-available, sites-enabled and conf.d directories exist
file:
path: "{{nginx_dir}}/{{item}}"
owner: root
group: root
mode: 0755
recurse: yes
state: directory
with_items: ["sites-available", "sites-enabled", "conf.d"]