This file contains hidden or 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 python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import re | |
| import argparse | |
| import errno | |
| import requests | |
| from bs4 import BeautifulSoup |
This file contains hidden or 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 | |
| ANS_FILES="inventory site.yml config.yml" | |
| ANS_DIRS="group_vars host_vars roles yml" | |
| for f in ${ANS_FILES}; do | |
| echo "touch ${f}" | |
| touch ${f} | |
| done |
This file contains hidden or 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
| #handlers/main.yml | |
| --- | |
| - name: Restart apache | |
| service: name=apache2 state=restarted enabled=yes | |
| tags: | |
| - apache | |
| #task/main.yml | |
| --- | |
| - name: Enable apache modules | |
| lineinfile: > |
This file contains hidden or 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
| #!/bin/sh | |
| ### Simple shell script to create Ansible role folders | |
| sub_dirs="meta tasks vars handlers templates" | |
| [ -z "$1" ] && echo "Usage: $0 your_role " && exit 1 | |
| for role in "$@"; do |
NewerOlder