Hi Team Any thoughts on reducing this repetition !!
Thanks On Mon, 20 Jul 2020, 00:28 Pawan Kumar, <[email protected]> wrote: > > > > > > Hi ,Team > > Require your help to reduce repeated steps , in the following playbook ,3 > roles are common ,but 2 roles( permission.yml & reload_base_service.yml) > variable value is different > > - hosts: masters > gather_facts: yes > vars: > - owner: "roks" > - mode: "0644" > - base_service: "mot-idm" > tasks: > - include_role: > name: motors > tasks_from: "{{ item }}" > with_items: > - permission.yml > - reload_base_service.yml > - restart_component.yaml > > - hosts: organization > gather_facts: yes > vars: > - owner: "taxi" > - mode: "0755" > - base_service: "mzee-org" > tasks: > - include_role: > name: motors > tasks_from: "{{ item }}" > with_items: > - permission.yml > - reload_base_service.yml > - restart_component.yaml > > - hosts: doxy > gather_facts: yes > vars: > - owner: "matter" > - mode: "0644" > - base_service: "rater-x" > tasks: > - include_role: > name: motors > tasks_from: "{{ item }}" > with_items: > - permission.yml > - reload_base_service.yml > - restart_component.yaml > > > Thanks > > -- > 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/12f8588f-4bdd-487c-9761-024b39d9591eo%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/12f8588f-4bdd-487c-9761-024b39d9591eo%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAEM0ThHLNFPYhKxvAhOM4stk0GfFJ6%3DSBs2r0yx4%2BhzbZY-URQ%40mail.gmail.com.
