Skip to content

Instantly share code, notes, and snippets.

View rafaelnize's full-sized avatar

Rafael Nize rafaelnize

  • São Paulo, Brazil
View GitHub Profile
@rafaelnize
rafaelnize / testboto_profile.py
Created June 27, 2016 13:17
Test boto profile
import boto.ec2
conn = boto.ec2.EC2Connection(profile_name='test')
print conn
print conn.get_all_instances()
git checkout dmgr2 # gets you "on branch dmgr2"
git fetch origin # gets you up to date with origin
git merge origin/master
- name: Test Ansible version 3
shell: echo "Ansible version is not compatible with this playbook"
when: ansible_version.major = 2 and ansible_version.minor >= 1
The Open Procedure for service "BITS" in DLL "C:\Windows\system32\bitsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.
Try to reload it:
1. lodctr bitsperf.dll
2. lodctr \R
3. lodctr /e:bitsperf.dll
aws elb describe-load-balancers --load-balancer-names < name >
aws route53 list-resource-record-sets --hosted-zone-id <Zone>
Example:
ansible-playbook user.yml --extra-vars "target=server_name"
ansible-playbook example.yml --tags "packages"
Connection test
ansible group -i inventories/inventory.ini -m ping
ansible atlanta -a "/sbin/reboot" -f 10