-1
ansibleプレイブックをテストするさまざまな方法を検討しており、Jeff Geerlingでこのブログ記事を読んできました。私はそれを複製する際にpipencyを使用してインストールしたときに役割を見つけることができない
、しかし、彼の正確な例を作品の複製が、私は次のエラーを取得し、インストールpipenv経由でのpython(とansible)を管理
ERROR! the role 'ansible-test' was not found in /Users/philip/Desktop/ansible-test/tests/roles:/Users/philip/ansible-test:/Users/philip/Desktop/ansible-test/tests
The error appears to have been in '/Users/philip/Desktop/ansible-test/tests/test.yml': line 4, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- ansible-test
^here
test.yml
の内容は
- hosts: localhost
remote_user: root
roles:
- ansible-test
です
は、yamllintとなります。
ansible.cfg
は、私はそれがVIRTUALENVにいるとは何かを推測しているのです
[defaults]
roles_path = ../../ansible-test
が含まれていますが、それを説明することはできません。
パーフェクト。説明ありがとう! –