AMW-398 Use tags to decorate the role workflow

This commit is contained in:
Ranabir Chakraborty 2025-05-20 20:59:59 +05:30
commit 0403939c03
6 changed files with 70 additions and 14 deletions

View file

@ -1,6 +1,10 @@
--- ---
- name: Include firewall config tasks - name: Include firewall config tasks
ansible.builtin.include_tasks: iptables.yml ansible.builtin.include_tasks:
file: iptables.yml
apply:
tags:
- firewall
when: keycloak_configure_iptables when: keycloak_configure_iptables
tags: tags:
- firewall - firewall

View file

@ -1,22 +1,38 @@
--- ---
# tasks file for keycloak # tasks file for keycloak
- name: Check prerequisites - name: Check prerequisites
ansible.builtin.include_tasks: prereqs.yml ansible.builtin.include_tasks:
file: prereqs.yml
apply:
tags:
- prereqs
tags: tags:
- prereqs - prereqs
- name: Distro specific tasks - name: Distro specific tasks
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml" ansible.builtin.include_tasks:
file: "{{ ansible_os_family | lower }}.yml"
apply:
tags:
- unbound
tags: tags:
- unbound - unbound
- name: Include install tasks - name: Include install tasks
ansible.builtin.include_tasks: install.yml ansible.builtin.include_tasks:
file: install.yml
apply:
tags:
- install
tags: tags:
- install - install
- name: Include systemd tasks - name: Include systemd tasks
ansible.builtin.include_tasks: systemd.yml ansible.builtin.include_tasks:
file: systemd.yml
apply:
tags:
- systemd
tags: tags:
- systemd - systemd

View file

@ -1,6 +1,10 @@
--- ---
- name: Include firewall config tasks - name: Include firewall config tasks
ansible.builtin.include_tasks: firewalld.yml ansible.builtin.include_tasks:
file: firewalld.yml
apply:
tags:
- firewall
when: keycloak_configure_firewalld when: keycloak_configure_firewalld
tags: tags:
- firewall - firewall

View file

@ -1,6 +1,10 @@
--- ---
- name: Include firewall config tasks - name: Include firewall config tasks
ansible.builtin.include_tasks: iptables.yml ansible.builtin.include_tasks:
file: iptables.yml
apply:
tags:
- firewall
when: keycloak_quarkus_configure_iptables when: keycloak_quarkus_configure_iptables
tags: tags:
- firewall - firewall

View file

@ -1,34 +1,58 @@
--- ---
# tasks file for keycloak # tasks file for keycloak
- name: Check prerequisites - name: Check prerequisites
ansible.builtin.include_tasks: prereqs.yml ansible.builtin.include_tasks:
file: prereqs.yml
apply:
tags:
- prereqs
tags: tags:
- prereqs - prereqs
- always - always
- name: Check for deprecations - name: Check for deprecations
ansible.builtin.include_tasks: deprecations.yml ansible.builtin.include_tasks:
file: deprecations.yml
apply:
tags:
- always
tags: tags:
- always - always
- name: Distro specific tasks - name: Distro specific tasks
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml" ansible.builtin.include_tasks:
file: "{{ ansible_os_family | lower }}.yml"
apply:
tags:
- unbound
tags: tags:
- unbound - unbound
- name: Include install tasks - name: Include install tasks
ansible.builtin.include_tasks: install.yml ansible.builtin.include_tasks:
file: install.yml
apply:
tags:
- install
tags: tags:
- install - install
- name: Include systemd tasks - name: Include systemd tasks
ansible.builtin.include_tasks: systemd.yml ansible.builtin.include_tasks:
file: systemd.yml
apply:
tags:
- systemd
tags: tags:
- systemd - systemd
- name: Include configuration key store tasks - name: Include configuration key store tasks
ansible.builtin.include_tasks:
file: config_store.yml
apply:
tags:
- install
when: keycloak.config_key_store_enabled when: keycloak.config_key_store_enabled
ansible.builtin.include_tasks: config_store.yml
tags: tags:
- install - install

View file

@ -1,6 +1,10 @@
--- ---
- name: Include firewall config tasks - name: Include firewall config tasks
ansible.builtin.include_tasks: firewalld.yml ansible.builtin.include_tasks:
file: firewalld.yml
apply:
tags:
- firewall
when: keycloak_quarkus_configure_firewalld when: keycloak_quarkus_configure_firewalld
tags: tags:
- firewall - firewall