Skip to content

Instantly share code, notes, and snippets.

@gmaurice
gmaurice / short-doc.yml
Last active March 31, 2020 20:35
load nginx_vhosts array from files
** playbook-test.yml
- hosts: all
gather_facts: no
vars:
nginx_vhosts: []
tasks:
- include_tasks: load-vhosts-conf.yml
vars:
vhost_file: '{{ item }}'
$ ansible-playbook -v -i 127.0.0.1, --extra-vars "port=9999" playbook.yml
playbook.yml:
- hosts: 127.0.0.1
connection: local
gather_facts: no
tasks:
- wait_for:
host: "{{ item }}"
port: "{{ port }}"
@gmaurice
gmaurice / net_http_spore-:_in_params.patch
Created May 23, 2011 21:55
This patch proposal allows clients to use ":" and "@" in params
diff --git a/lib/Net/HTTP/Spore/Request.pm b/lib/Net/HTTP/Spore/Request.pm
index 365e736..c08beb9 100644
--- a/lib/Net/HTTP/Spore/Request.pm
+++ b/lib/Net/HTTP/Spore/Request.pm
@@ -150,7 +150,7 @@ sub uri {
my $base = $self->_uri_base;
- my $path_escape_class = '^A-Za-z0-9\-\._~/';
+ my $path_escape_class = '^A-Za-z0-9\-\._~/@\:';
use lib ('lib');
use YAML::Syck;
use JSON;
use Redis;
use Storage; # My own module
use Storage::Riak; # My own too
my $storage = Storage->new(
driver => Storage::Riak->new);
my $redis = Redis->new;