LoginSignup
1
0

More than 5 years have passed since last update.

ansibleでplaybooks must be a list of playsが出た

Last updated at Posted at 2018-08-14

ansibleでimport_playbookを使ったときに出てきたエラー

develop.yml
---
- import_playbook: develop-web.yml
develop-web.yml
- hosts:
    - vagrant
  roles:
    - vagrant
    - php

で、develop-web.yml単体だったら動くのに、develop.ymlでimport_playbookしたらエラーになる。

ERROR! playbooks must be a list of plays

---が抜けてたから…。

develop-web.yml
---
- hosts:
    - vagrant
  roles:
    - vagrant
    - php

これで動いた。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0