Hi Experts,
Im very new to ansible and trying to set a small project by executing the scripts.
My anisble --version is 2.2.1.0
Python 2.7.12+
and open stack version is v.3.0
I have a site.yaml file as below
site.yaml
- import_playbook: repodb.yaml
- import_playbook: dsm.yaml
Im trying to execute the site.yaml as below
While i do this im getting below error. Please help as Im not sure how to proceed from this.
vagrant@ubuntu:~/deployments/dsm-prod$ sudo su -p -c “ansible-playbook -vvv -i hosts.py -u cloud-user ~/ansible-playbooks/playbooks/data-server-manager/site.yaml --ask-vault-pass”
Using /home/vagrant/deployments/dsm-prod/ansible.cfg as config file
Vault password:
ERROR! ‘import_playbook’ is not a valid attribute for a Play
The error appears to have been in ‘/home/vagrant/ansible-playbooks/playbooks/data-server-manager/site.yaml’: line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- import_playbook: repodb.yaml
^ here
Thanks