- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| ; Start a new pool named 'www'. | |
| ; the variable $pool can we used in any directive and will be replaced by the | |
| ; pool name ('www' here) | |
| [www] | |
| ; Per pool prefix | |
| ; It only applies on the following directives: | |
| ; - 'slowlog' | |
| ; - 'listen' (unixsocket) | |
| ; - 'chroot' |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].
First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as
| from ansible.cli import CLI | |
| from ansible.executor import playbook_executor | |
| from ansible import inventory | |
| from ansible.parsing import dataloader | |
| from ansible import vars | |
| HOSTS = ['127.0.0.1'] | |
| PLAYBOOK = "/tmp/hello.yml" | |
| REMOTE_USER = "user" | |
| SSH_KEY = "/home/user/.ssh/id_rsa" |
| #!/usr/bin/env python | |
| # stolen from http://stackoverflow.com/questions/27590039/running-ansible-playbook-using-python-api | |
| import os | |
| import sys | |
| from collections import namedtuple | |
| from ansible.parsing.dataloader import DataLoader | |
| from ansible.vars import VariableManager | |
| from ansible.inventory import Inventory |