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
cluster_name: dev |
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
cluster_name: dev |
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
cluster_name: dev | |
another: foo | |
testing: {} | |
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
- hosts: localhost | |
connection: local | |
gather_facts: false | |
tasks: | |
- name: add a couple of keys to an authorized_keys file | |
authorized_key: path='./keys' user=sgargan key="{{ lookup('file', './ansible.pub') }}" | |
- authorized_key: path='./keys' user=sgargan key="{{ lookup('file', './sgargan.pub') }}" |
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
class Task: | |
def __init__(self, task): | |
self.results = {} | |
def add_result(self, host, result): | |
self.results[host] = result | |
print "task (%s), results(%s) count(%s)" % (id(self), id(self.results), len(self.results)) | |
class CallbackModule(object): | |
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
class Tasky: | |
def __init__(self, task): | |
self.results = {} | |
def add_result(self, host, result): | |
self.results[host] = result | |
print "task (%s), results(%s) count(%s)" % (id(self), id(self.results), len(self.results)) | |
class CallbackModule(object): | |
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
sandbox1 ansible_ssh_host=11.22.33.44 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=~/.ssh/oste.pem | |
[sandbox] | |
sandbox1 |
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
- name: change cgi path | |
lineinfile: | |
dest: /usr/local/nagios/share/config.inc.php | |
line: "$cfg['cgi_base_url']='/cgi-bin';" | |
regexp: (cgi_base_url) |
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
- name: create the hdpoker database | |
action: | |
module: postgresql_db | |
db: '{{postgres_name}}' | |
login_host: '{{ postgres_host }}' | |
login_user: '{{postgres_admin_username}}' | |
login_password: '{{postgres_admin_password}}' | |
encoding: 'UTF-8' | |
state: '{{item}}' |
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
- debug: msg='adding {{instance_id}} to {{ balancer_name}}' | |
- local_action: | |
module: ec2_elb | |
ec2_elbs: "{{ balancer_name }}" | |
aws_access_key: '{{ ec2_access_key }}' | |
aws_secret_key: '{{ ec2_secret_key }}' | |
state: '{{state}}' | |
region: '{{ region }}' | |
instance_id: "{{ instance_id }}" | |
wait: no |
OlderNewer