yum install epel-release yum install python-pip pip install awscli
cat ~/.aws/config
[default]
output = json
region = ap-northeast-1
| import CHIP_IO.GPIO as GPIO | |
| import time | |
| GPIO.cleanup() | |
| GPIO.setup("XIO-P2", GPIO.OUT) | |
| print "Toggling XIO-P1 10 times..." | |
| for i in range(0,10): | |
| GPIO.output("XIO-P2", GPIO.LOW) | |
| time.sleep(0.1) | |
| GPIO.output("XIO-P2", GPIO.HIGH) | |
| time.sleep(0.1) |
| --- | |
| - name: setup-docker-compose | |
| hosts: localhost | |
| become: yes | |
| become_user: root | |
| gather_facts: False | |
| tasks: | |
| - name: install epel-release | |
| yum: name=epel-release state=present |
| FROM ruby:1.9.3 | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql-client | |
| RUN mkdir /app | |
| WORKDIR /app | |
| ADD ./app/Gemfile /app/Gemfile | |
| ADD ./app/Gemfile.lock /app/Gemfile.lock | |
| RUN bundle install -j4 | |
| ADD ./app /app |
| --- | |
| - name: setup-ethna | |
| hosts: all | |
| become: yes | |
| become_user: root | |
| gather_facts: False | |
| vars: | |
| project_owner: vagrant | |
| project_owner_home: /home/{{ project_owner }} | |
| project_name: sample |