Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/53ningen/public-ansible
公開できる ansible コードを置いておくスレ
https://github.com/53ningen/public-ansible
Last synced: 7 days ago
JSON representation
公開できる ansible コードを置いておくスレ
- Host: GitHub
- URL: https://github.com/53ningen/public-ansible
- Owner: 53ningen
- Created: 2017-11-28T06:19:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T04:26:54.000Z (almost 7 years ago)
- Last Synced: 2024-11-14T03:49:25.673Z (2 months ago)
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/53ningen/public-ansible.svg?branch=master)](https://travis-ci.org/53ningen/public-ansible)
## directory structure
[Ansible Best Practices](https://www.google.co.jp/search?q=ansible+best+practices&oq=ansible+best+pra&aqs=chrome.0.0j69i57j0l4.3407j0j7&sourceid=chrome&ie=UTF-8)
## ping
```
ansible -u --private-key=~/.ssh/ -i inventories/... all -m ping
```## inventories
* dev.yml: 開発環境の inventories
* prod.yml: 本番環境の inventories## playbooks
* init.yml: ホスト名の設定などを行う
* users.yml: user, group の作成/削除などを行う
* app.yml: 何らかのアプリケーションサーバー構築のためのベースとなる playbook## ansible-lint
```
pip install -r requirements.txt
ansible-lint **.yml
```