Thanks allot for your quick answers and help 


On Wednesday, May 6, 2020 at 1:20:30 PM UTC+3, Meir Yanovich wrote:
>
> I try to include_rule but i keep getting errors on the wrong syntax 
> this is my file structure :
>
>
>     ├── roles  
>     │   └── utilities
>     │       ├── defaults
>     │       ├── files
>     │       ├── handlers
>     │       ├── meta
>     │       ├── tasks
>     │       │   └── d_pack.yml
>     │       ├── templates
>     │       └── vars
>     └── test4.yml
>     
>
> the rule d_pack.yml
>
>     ---
>     - name: d packa
>       get_url:
>         url_username:
>         url_password:
>         dest:
>         url:
>         owner:
>         group:
>
>
> the test4.yml
>
>     ---
>     - 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 }}"
>
> getting this error:
>
> 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
>
>
>
>

-- 
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/6c046373-2777-4a68-9641-b4464721c3bc%40googlegroups.com.

Reply via email to