Created
September 21, 2020 00:57
-
-
Save 0xdeadbeefJERKY/153e3097b01d8ffa9a1e2b9c03407c81 to your computer and use it in GitHub Desktop.
Simple bash script to configure the directory layout according to Ansible's official best practices. Note that the role sub-directories should be created using something like molecule, ansible-galaxy, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Create inventory file(s) | |
touch production staging | |
# Create various directories | |
mkdir -p group_vars host_vars library module_utils filter_plugins roles | |
# Create main playbook | |
touch site.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment