On 5/6/20 12:20 PM, 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 values are missing here.
Regards
Racke
>
> the test4.yml
>
> |
> ---
> -name:check ifexsist
> hosts:localhost
> gather_facts:false
> tasks:
> -name:thisistest
> 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:
>
> |
> Theerror appears to be in'/home/ec2-user/ansible/test4.yml':line 6,column
> 8,but may
> be elsewhere inthe file depending on the exact syntax problem.
>
>
> Theoffending line appears to be:
>
>
> tasks:
> -name:thisistest
> ^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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/760f037b-103a-4885-b101-fb13c5909910%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/760f037b-103a-4885-b101-fb13c5909910%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
--
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/1ca8a83c-a2a7-5f7a-17a0-219ea7013b4a%40linuxia.de.
signature.asc
Description: OpenPGP digital signature
