[WARNING]: provided hosts list is empty, only localhost is available
skipping: no hosts matched
上記間違いです。export ANSIBLE_INVENTORY=ホストファイルのフルパス
ansible.cfgをいろいろ使い分けたい場合に使う?
ちなみにansible 1.5よりも後のもの対象。
ansible.cfgの参照順序
- ANSIBLE_CONFIG(環境変数)
- カレントディレクトリ(./ansible.cfg)
- ホームディレクトリの隠しファイル?(~/.ansible.cfg)
- /etc/ansible/ansible.cfg
0 件のコメント:
コメントを投稿