On Thu, 3 Oct 2019 05:48:04 -0700 (PDT) Mohtashim S <mohtash...@gmail.com> wrote:
> My requirement is to run two tasks i.e "Load Deployment1." & "Load > Deployment2." in my Play 4. > > Below is my playbook: > > - name: Play 4 > hosts: localhost > tasks: > - name: "Load Deployment1." > tags: deploy > include_vars: > file: "{{ item }}" > with_fileglob: > - "vars/App_*.yaml" > > tasks: > - name: "Load Deployment2." > local_action: command ls -ltr checkrun.yml > > Below is the Output : > > [WARNING]: While constructing a mapping from > > /app/axmw/Ansible/playbook/finacle_deployment/checkrun.yml, line 1, column > > 3, found a duplicate dict key > > (tasks). Using last defined value only. Is there a reason why single play would not work? - name: Play 4 hosts: localhost tasks: - name: "Load Deployment1." tags: deploy include_vars: file: "{{ item }}" with_fileglob: - "vars/App_*.yaml" - name: "Load Deployment2." local_action: command ls -ltr checkrun.yml Cheers, -vlado -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20191003154423.75c3c040%40gmail.com.
pgpObvFmahzqm.pgp
Description: OpenPGP digital signature