Skip to content

Instantly share code, notes, and snippets.

View wyw's full-sized avatar

WU Yuanwei wyw

  • 11:56 (UTC +08:00)
View GitHub Profile
@wyw
wyw / gist:e02749e6bd4948fbfb44100c4e202e39
Created September 28, 2018 08:30 — forked from jaxbot/gist:5748513
Block nginx from serving .git directories
location ~ /\.git {
deny all;
}
# or, all . directories/files in general (including .htaccess, etc)
location ~ /\. {
deny all;
}
@wyw
wyw / ansible_local_playbooks.md
Created December 20, 2018 06:01 — forked from alces/ansible_local_playbooks.md
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local