# Include\_policyfile reverse run\_list

**URL:** <https://discourse.chef.io/t/include-policyfile-reverse-run-list/22938>\
**Category:** Chef Infra Client\
**Created:** [March 29, 2024, 6:13pm UTC](https://discourse.chef.io/t/include-policyfile-reverse-run-list/22938 "2024-03-29T18:13:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noble](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@Noble](https://discourse.chef.io/u/Noble)\
**Post date:** [March 29, 2024, 6:13pm UTC](https://discourse.chef.io/t/include-policyfile-reverse-run-list/22938/1 "2024-03-29T18:13:02Z")

</div>

Hi all,

I've noticed when you add include\_policy, the run list from that include\_policy takes precedence over the run\_list in your current policyfile.

Example...

```auto
name 'example_policy'

include_policy 'include_example', path: '/some/path'

run_list 'example_cookbook::default'

```

Your run list will be defined as include\_example::default then example\_cookbook::default

Is there a way to reverse that order other than just defining the run\_list in which you want it?

Thanks.

---

<div class="post-metadata">

**Author:** ![Stromweld](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/stromweld/32/3416_2.png) [@Stromweld](https://discourse.chef.io/u/Stromweld)\
**Post date:** [April 1, 2024, 5:04pm UTC](https://discourse.chef.io/t/include-policyfile-reverse-run-list/22938/2 "2024-04-01T17:04:24Z")

</div>

When including a policy that has a runlist defined the behaviour is for them to be appended to the beginning of your runlist. The intention behind this would be that your creating a policy for an application app1. OS team requires everyone to include their base policy for all servers and security team requires everyone to include their security policy for all servers. You'd want those runlists to run first then your runlist to finish configuring the server for your application.
