Skip to content

ansible does not use ansible.builtin.include_vars in pre_tasks and use only roles: #181

@gilkatz64

Description

@gilkatz64

The following playbook runs without any problem from command line

  • name: testing group_vars
    hosts: localhost
    connection: local
    gather_facts: false
    pre_tasks:

    • name: include services yaml files
      ansible.builtin.include_vars:
      dir: group_vars/services

    roles:

    • role: print-test

but when I run this from packer ansible skip pre_tasks section
we are using packer 1.8.3 since we are also using chef provisioner

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions