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: wait for ping | |
| ping: | |
| register: waiting | |
| until: waiting|success | |
| retries: 10 | |
| delay: 20 |
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
| import json | |
| import urllib | |
| import urllib2 | |
| url = 'http://localhost:8888/ansible' | |
| def post(category, data): | |
| data['category'] = category | |
| invocation = data.pop('invocation', None) |
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: example | |
| gather_facts: no | |
| tasks: | |
| - name: raw | |
| raw: sleep 10 && ls / > /home/hoge/hogehoge |
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
| sakura <--> 西海岸 | |
| ping (icmp) | |
| round-trip min/avg/max/stddev = 117.985/118.451/127.126/1.422 ms | |
| ぐらいの環境 | |
| QoS0 | |
| receiver:2014-01-31T10:26:35.783506, QoS:0, msgid:0, sender:2014-01-31T10:26:35.665650, diff:0:00:00.117856 |
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
| ______________________________________________________ | |
| < TASK: yum name="{{work_dir}}/{{item}}" state=present > | |
| ------------------------------------------------------ | |
| \ ^__^ | |
| \ (oo)\_______ | |
| (__)\ )\/\ | |
| ||----w | | |
| || || | |
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: test | |
| gather_facts: no | |
| remote_user: ubuntu | |
| sudo: yes | |
| tasks: | |
| - name: get id | |
| shell: id | |
| sudo_user: www | |
| register: hoge |
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: all | |
| gather_facts: no | |
| sudo: no | |
| tasks: | |
| - name: run ssh-keyscan to add keys to known_hosts | |
| local_action: shell ssh-keyscan {{ ansible_ssh_host }} >> ~/.ssh/known_hosts |
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: release | |
| sudo: no | |
| serial: 1 | |
| tasks: | |
| - name: git repoのpush | |
| local_action: command git push {{ inventory_hostname }} master | |
| - name: git repoのpull | |
| command: chdir=/home/worker/snowflakes | |
| git pull --rebase origin master |
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
| How to write | |
| 1. pip install sphinxjp.themecore | |
| 2. pip install <なにか新しいtinkererのテーマ> 例: sphinxjp.themes.newtinker | |
| 3. 'sphinxjp.themecore' をextentionsに追加する | |
| 例: extensions = ['tinkerer.ext.blog', 'tinkerer.ext.disqus', 'sphinxjp.themecore'] | |
| 4. html_theme = "<なにか新しいtinkererのテーマ>" と書く | |
| 5. ヽ(゚∀゚ヽ 三 ノ゚∀゚)ノ ワーイ |
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: local | |
| gather_facts: no | |
| user: shirou | |
| vars: | |
| - packages: | |
| - build-essential | |
| - libsqlite3-dev | |
| - libreadline6-dev | |
| - libgdbm-dev |