On Wed, 6 May 2020 03:20:30 -0700 (PDT) Meir Yanovich <[email protected]> wrote:
> ---
> - name: check if exsist
> hosts: localhost
> gather_facts: false
> tasks:
> - name: this is test
> include_role:
> static: no
> name: utilities
> tasks_from: d_pack
> vars:
> url_username: "{{ user }}"
> url_password: "{{ pass }}"
> dest: "{{ ansible_env.APP }}/"
> url: "{{ package_url }}"
> owner: "{{ ansible_user }}"
> group: "{{ ansible_user }}"
>
> The error appears to be in '/home/ec2-user/ansible/test4.yml': line 6,
> column 8, but may be elsewhere in the file depending on the exact syntax
> problem.
> The offending line appears to be:
> tasks:
> - name: this is test
> ^ here
Remove "static: no". There is no such parameter in module "include_role". Fix
the indentation.
---
- name: check if exsist
hosts: localhost
gather_facts: false
tasks:
- name: this is test
include_role:
name: utilities
tasks_from: d_pack
vars:
url_username: "{{ user }}"
url_password: "{{ pass }}"
dest: "{{ ansible_env.APP }}/"
url: "{{ package_url }}"
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
HTH,
-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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20200506132121.07eadfc9%40gmail.com.
pgp5kMZlWhDZx.pgp
Description: OpenPGP digital signature
