ansible-lintの使い方
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[ansible]]
*概要 [#h1e00de7]
ansible-lintの基本的な使い方です。
*インストール手順 [#t9e53b32]
pip install ansible-lint
*ルールの一覧確認 [#ie25358f]
ansible-lint -L
*lintの実行 [#z9762e58]
ansible-lint /path/to/*.yml
*lintファイルの指定 [#q922bf57]
ansible-lint /pat/to/*.yml -c /path/to/.ansible-lint
*ansible-lintの設定ファイル例 [#j63e905e]
下記例だとANSIBLE0002の空白チェックのみがエラーとなる。
parseable: true
quiet: false
use_default_rules: true
skip_list:
- ANSIBLE0004
- ANSIBLE0005
- ANSIBLE0006
- ANSIBLE0007
- ANSIBLE0008
- ANSIBLE0009
- ANSIBLE0010
- ANSIBLE0011
- ANSIBLE0012
- ANSIBLE0013
- ANSIBLE0014
- ANSIBLE0015
- ANSIBLE0016
- ANSIBLE0017
- ANSIBLE0018
verbosity: 1
終了行:
[[ansible]]
*概要 [#h1e00de7]
ansible-lintの基本的な使い方です。
*インストール手順 [#t9e53b32]
pip install ansible-lint
*ルールの一覧確認 [#ie25358f]
ansible-lint -L
*lintの実行 [#z9762e58]
ansible-lint /path/to/*.yml
*lintファイルの指定 [#q922bf57]
ansible-lint /pat/to/*.yml -c /path/to/.ansible-lint
*ansible-lintの設定ファイル例 [#j63e905e]
下記例だとANSIBLE0002の空白チェックのみがエラーとなる。
parseable: true
quiet: false
use_default_rules: true
skip_list:
- ANSIBLE0004
- ANSIBLE0005
- ANSIBLE0006
- ANSIBLE0007
- ANSIBLE0008
- ANSIBLE0009
- ANSIBLE0010
- ANSIBLE0011
- ANSIBLE0012
- ANSIBLE0013
- ANSIBLE0014
- ANSIBLE0015
- ANSIBLE0016
- ANSIBLE0017
- ANSIBLE0018
verbosity: 1
ページ名: