On Wed, 4 Oct 2023 20:45:23 -0500 "'Matt Zagrabelny' via Ansible Project" <ansible-project@googlegroups.com> wrote:
> > PLAY [all] ***************************** > > > > TASK [nftables : debug] **************** > > ok: [zed] => > > forward_policy: drop > I would like forward_policy to be "accept" for the nftables role ... > I want the "router" role to affect ... "nftables" role. Create task that will "instantiate" the variable *forward_policy* shell> cat roles/router/tasks/instantiate_vars.yml - set_fact: forward_policy: "{{ forward_policy }}" when: forward_policy is defined and run it in the first play *pre_tasks* shell> cat pb.yml - hosts: all pre_tasks: - include_role: name: router tasks_from: instantiate_vars run_once: true roles: - nftables - hosts: router roles: - router -- Vladimir Botka -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20231005081108.4be4f4cc%40gmail.com.
pgpX9M9yblTJM.pgp
Description: OpenPGP digital signature