Skip to content

Instantly share code, notes, and snippets.

View ngf-davef-devops's full-sized avatar

Dave Fisher ngf-davef-devops

View GitHub Profile
@ngf-davef-devops
ngf-davef-devops / structure.ansible.yml
Created November 11, 2022 11:12
Playbook to create a default directory & file structure for Ansible projects, create a folder, copy this playbook to it and execute it from within that folder.
---
- hosts: localhost
connection: local
gather_facts: false
become: false
tasks:
- name: Create folder structure
ansible.builtin.file:
path: "{{ item }}"