Skip to content

Commit

Permalink
Refine play names
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Feb 25, 2024
1 parent 35b251a commit 082d50f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
6 changes: 4 additions & 2 deletions baker/ansible/binaries.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Building and checking
- name: LIB
hosts: lib
tasks:
- ansible.builtin.import_tasks: # noqa: name[missing]
Expand All @@ -15,11 +15,13 @@
maven_phase: "{{ 'deploy' if repo_mode == 'rw' else 'install' }}"
when: binary_status is changed

- name: Building and checking
- name: APP
hosts: app
tasks:
- ansible.builtin.import_tasks: # noqa: name[missing]
file: tasks/java/check.yaml
vars:
maven_projects: "{{ product.apps.values()|flatten|map(attribute='name') }}"
- ansible.builtin.import_tasks: # noqa: name[missing]
file: tasks/app/build-check.yaml
vars:
Expand Down
8 changes: 4 additions & 4 deletions baker/ansible/images.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Capturing
- name: IMAGES
hosts: images
tasks:
- ansible.builtin.include_tasks: # noqa: name[missing]
Expand All @@ -8,7 +8,7 @@
tags: [always]
tags: [always]

- name: Building
- name: DB
hosts: db
tasks:
- ansible.builtin.import_role: # noqa: name[missing]
Expand All @@ -26,7 +26,7 @@
file: tasks/db/build.yaml
when: image_status is changed

- name: Building and checking
- name: APP
hosts: app
tasks:
- ansible.builtin.import_tasks: # noqa: name[missing]
Expand All @@ -53,7 +53,7 @@
file: tasks/app/build-check.yaml
when: image_status is changed

- name: Publishing
- name: IMAGES
hosts: images
tasks:
- ansible.builtin.include_tasks: # noqa: name[missing]
Expand Down
1 change: 1 addition & 0 deletions baker/ansible/inventory/aliases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sources:
binaries:
hosts:
lib:
app:
images:
hosts:
db:
Expand Down
2 changes: 1 addition & 1 deletion baker/ansible/sources.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Checking
- name: SOURCES
hosts: sources
tasks:
- ansible.builtin.include_tasks: # noqa: name[missing]
Expand Down
10 changes: 5 additions & 5 deletions baker/ansible/stacks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- import_playbook: images.yaml # noqa: name[play]

- name: Capturing
- name: STACKS
hosts: stacks
tasks:
- ansible.builtin.include_tasks: # noqa: name[missing]
Expand All @@ -10,7 +10,7 @@
tags: [always]
tags: [always]

- name: Building
- name: GEAR
hosts: gear
tasks:
- ansible.builtin.import_tasks: # noqa: name[missing]
Expand All @@ -24,15 +24,15 @@
stack_status is changed and
is_virtual.rc != 0
- name: Checking
- name: PIPELINE
hosts: pipeline
tasks:
- ansible.builtin.import_tasks: # noqa: name[missing]
file: tasks/github/check.yaml
tags: [build]
when: stack_status is changed

- name: Building and checking
- name: PRODUCT
hosts: product
vars:
stack_dir: "{{ project.dir }}/stack/product"
Expand All @@ -50,7 +50,7 @@
hostvars.product.stack_status is changed or
hostvars.gear.stack_status is changed
- name: Publishing
- name: STACKS
hosts: stacks
tasks:
- ansible.builtin.include_tasks: # noqa: name[missing]
Expand Down
2 changes: 1 addition & 1 deletion baker/ansible/tasks/lib/build-check-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Build
- name: Build, check, publish
ansible.builtin.command:
cmd: >-
mvn {{ maven_phase|mandatory }}
Expand Down

0 comments on commit 082d50f

Please sign in to comment.