以下のワーニングが出力されているので解消したい。
command-instead-of-shell: Use shell only when shell functionality is required.
roles/system/tasks/main.yml:2 Task/Handler: check locale
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:2 Task/Handler: check locale
yaml: truthy value should be one of [false, true] (truthy)
roles/system/tasks/main.yml:5
command-instead-of-shell: Use shell only when shell functionality is required.
roles/system/tasks/main.yml:9 Task/Handler: set locale
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:9 Task/Handler: set locale
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:19 Task/Handler: yum updade
package-latest: Package installs should not use latest.
roles/system/tasks/main.yml:19 Task/Handler: yum updade
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:24 Task/Handler: yum install
var-spacing: Variables should have spaces before and after: { var_name }.
roles/system/tasks/main.yml:24 Task/Handler: yum install
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:33 Task/Handler: yum install docker-ce
package-latest: Package installs should not use latest.
roles/system/tasks/main.yml:33 Task/Handler: yum install docker-ce
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:39 Task/Handler: start & enable docker service
yaml: truthy value should be one of [false, true] (truthy)
roles/system/tasks/main.yml:43
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:46 Task/Handler: docker-compose1.29.2のインストール(バージョンは固定している)
yaml: truthy value should be one of [false, true] (truthy)
roles/system/tasks/main.yml:51
git-latest: Git checkouts must contain explicit version.
roles/system/tasks/main.yml:54 Task/Handler: git clone
command-instead-of-shell: Use shell only when shell functionality is required.
roles/system/tasks/main.yml:62 Task/Handler: docker build docker_rec_radiko
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:62 Task/Handler: docker build docker_rec_radiko
no-changed-when: Commands should not change things if nothing needs doing.
roles/system/tasks/main.yml:62 Task/Handler: docker build docker_rec_radiko
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:67 Task/Handler: debug var=result_shell
unnamed-task: All tasks should be named.
roles/system/tasks/main.yml:67 Task/Handler: debug var=result_shell
fqcn-builtins: Use FQCN for builtin actions.
roles/system/tasks/main.yml:71 Task/Handler: cron setting
You can skip specific rules or tags by adding them to your configuration file:
.config/ansible-lint.yml
warn_list: # or 'skip_list' to silence them completely
- command-instead-of-shell # Use shell only when shell functionality is required.
- fqcn-builtins # Use FQCN for builtin actions.
- git-latest # Git checkouts must contain explicit version.
- no-changed-when # Commands should not change things if nothing needs doing.
- package-latest # Package installs should not use latest.
- unnamed-task # All tasks should be named.
- var-spacing # Variables should have spaces before and after: {{ var_name }}.
- yaml # Violations reported by yamllint.
Finished with 22 failure(s), 0 warning(s) on 1 files.