Skip to content

Commit eaf8749

Browse files
committed
Update CDF example application.yml to be skipped if not executing the runtime runlevel.
Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
1 parent c1d8145 commit eaf8749

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

examples/cdf/application.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,23 @@
2424
- name: Construct the deployment details
2525
when:
2626
- deployment is undefined
27+
- "'run' in ansible_run_tags"
2728
- "'teardown' not in ansible_run_tags"
2829
ansible.builtin.include_role:
2930
name: cloudera.exe.info
3031

3132
- name: Get CDP workload username for current user
32-
when: "'teardown' not in ansible_run_tags"
33+
when:
34+
- "'teardown' not in ansible_run_tags"
35+
- "'run' in ansible_run_tags"
3336
cloudera.cloud.iam_user_info:
3437
current_user: yes
3538
register: __iam
3639

3740
- name: Extract Kafka Brokers from Info
38-
when: "'teardown' not in ansible_run_tags"
41+
when:
42+
- "'teardown' not in ansible_run_tags"
43+
- "'run' in ansible_run_tags"
3944
ansible.builtin.set_fact:
4045
kafka_brokers_fqdns: "{{ deployment.datahubs | selectattr('workloadType', 'search', 'Streams Messaging') | first | json_query(_jq) | first }}"
4146
vars:
@@ -44,6 +49,7 @@
4449
- name: Deploy example DFX Flow - Kafka to Kafka
4550
when:
4651
- "'teardown' not in ansible_run_tags"
52+
- "'run' in ansible_run_tags"
4753
- kafka_brokers_fqdns | length > 0
4854
cloudera.cloud.df_deployment:
4955
name: "{{ globals.name_prefix }}_ex_kafkatokafka"

0 commit comments

Comments
 (0)