Skip to content

Instantly share code, notes, and snippets.

View symlinks.yml
View Symlinks.yml
View Results
[root@NY11IBUILD01 ANSIBLE]# ansible-playbook playbook.yml --tags gitlab-runner --limit wrapweb
PLAY [webserver] **************************************************************
GATHERING FACTS ***************************************************************
ok: [wrapweb2]
ok: [wrapweb3]
ok: [wrapweb1]
TASK: [gitlab-runner | Install Gitlab runner repository] **********************
View gitlab.yml
---
- name: Install Gitlab runner repository
copy:
src: etc/yum.repos.d/gitlab-runner.repo
dest: /etc/yum.repos.d/gitlab-runner.repo
tags: [ 'gitlab-runner' ]
- name: Install Gitlab repository GPG key
rpm_key:
state: present
View demo.yml
- name: Register host keys
shell: "ssh-keyscan {{ hostvars[item]['ansible_ssh_host'] }}"
with_flattened:
- "{{ groups['elasticpress'] }}"
- "{{ groups['logstash'] }}"
- "{{ groups['webserver'] }}"
- "{{ groups['mariadb'] }}"
- "{{ groups['nfs-server'] }}"
register: inventory_host_keys
tags: [ 'monitmonit' ]
View gist:9d41478b9accd11b1133
Started GET "/users/sign_in" for 72.92.42.152 at 2015-03-25 05:20:40 +0000
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 93ms
NoMethodError (undefined method `push_events=' for #<GitlabIssueTrackerService:0x0000000490b358>):
app/models/project.rb:329:in `default_issue_tracker'
app/controllers/application_controller.rb:190:in `add_gon_variables'
@zamoose
zamoose / inventory.php
Last active Aug 29, 2015
Dynamic inventory
View inventory.php
#!/usr/bin/php
<?php
$cli_opts = "h";
$cli_long_opts = array(
"list",
"host:"
);
$options = getopt( $cli_opts, $cli_long_opts );
print_r($options);
@zamoose
zamoose / domains.yml
Last active Aug 29, 2015
Proposed HGV YAML format
View domains.yml
---
# Root-level array members should roughly line up with
# Ansible host groups
# Top level Ansible group containing HGV info.
# Should probably only ever contain one host.
vagrant_hosts:
# These map to the "hosts:" portion of the inventory
hgv.dev:
# Everything per-host maps to the "vars:" portion of the inventory
View WP MS Nginx
map $uri $blogname{
~^(?P<blogpath>/[^/]+/)files/(.*) $blogpath ;
}
map $blogname $blogid{
default -999;
#Ref: http://wordpress.org/extend/plugins/nginx-helper/
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am zamoose on github.
  • I am zamoose (https://keybase.io/zamoose) on keybase.
  • I have a public key whose fingerprint is 11CB D1D6 8323 1C5B 1BD1 3809 81A8 AEA1 CD1B 3B5A

To claim this, I am signing this object: