Skip to content

Commit 3c2f863

Browse files
committed
pulp_repository: Add loop_control labels to tasks to avoid leaking secrets
1 parent b10f13a commit 3c2f863

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

roles/pulp_repository/tasks/container.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
name: "{{ item.name }}"
99
state: "{{ item.state }}"
1010
with_items: "{{ pulp_repository_container_repos }}"
11+
loop_control:
12+
label: "{{ item.name }}"
1113

1214
- name: Setup container remotes
1315
pulp.squeezer.container_remote:
@@ -31,6 +33,8 @@
3133
url: "{{ item.url | default(omit) }}"
3234
state: "{{ item.state }}"
3335
with_items: "{{ pulp_repository_container_repos }}"
36+
loop_control:
37+
label: "{{ item.name }}"
3438

3539
- name: Sync container remotes into repositories
3640
pulp.squeezer.container_sync:
@@ -42,3 +46,5 @@
4246
remote: "{{ item.name }}-remote"
4347
with_items: "{{ pulp_repository_container_repos }}"
4448
when: item.state == "present"
49+
loop_control:
50+
label: "{{ item.name }}"

roles/pulp_repository/tasks/deb.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
name: "{{ item.name }}"
99
state: "{{ item.state }}"
1010
with_items: "{{ pulp_repository_deb_repos }}"
11+
loop_control:
12+
label: "{{ item.name }}"
1113

1214
- name: Setup DEB remotes
1315
pulp.squeezer.deb_remote:
@@ -33,6 +35,8 @@
3335
url: "{{ item.url | default(omit) }}"
3436
state: "{{ item.state }}"
3537
with_items: "{{ pulp_repository_deb_repos }}"
38+
loop_control:
39+
label: "{{ item.name }}"
3640

3741
- name: Sync DEB remotes into repositories
3842
pulp.squeezer.deb_sync:
@@ -45,3 +49,5 @@
4549
mirror: "{{ item.mirror | default(omit) }}"
4650
with_items: "{{ pulp_repository_deb_repos }}"
4751
when: item.state == "present"
52+
loop_control:
53+
label: "{{ item.name }}"

roles/pulp_repository/tasks/python.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
name: "{{ item.name }}"
99
state: "{{ item.state }}"
1010
with_items: "{{ pulp_repository_python_repos }}"
11+
loop_control:
12+
label: "{{ item.name }}"
1113

1214
- name: Setup PyPI remotes
1315
pulp.squeezer.python_remote:
@@ -33,6 +35,8 @@
3335
url: "{{ item.url | default(omit) }}"
3436
state: "{{ item.state }}"
3537
with_items: "{{ pulp_repository_python_repos }}"
38+
loop_control:
39+
label: "{{ item.name }}"
3640

3741
- name: Sync PyPI remotes into repositories
3842
pulp.squeezer.python_sync:
@@ -44,3 +48,5 @@
4448
remote: "{{ item.name }}-remote"
4549
with_items: "{{ pulp_repository_python_repos }}"
4650
when: item.state == "present"
51+
loop_control:
52+
label: "{{ item.name }}"

roles/pulp_repository/tasks/rpm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
name: "{{ item.name }}"
99
state: "{{ item.state }}"
1010
with_items: "{{ pulp_repository_rpm_repos }}"
11+
loop_control:
12+
label: "{{ item.name }}"
1113

1214
- name: Setup RPM remotes
1315
pulp.squeezer.rpm_remote:
@@ -30,6 +32,8 @@
3032
url: "{{ item.url | default(omit) }}"
3133
state: "{{ item.state }}"
3234
with_items: "{{ pulp_repository_rpm_repos }}"
35+
loop_control:
36+
label: "{{ item.name }}"
3337

3438
- name: Sync RPM remotes into repositories
3539
pulp.squeezer.rpm_sync:
@@ -42,3 +46,5 @@
4246
sync_policy: "{{ item.sync_policy | default(omit) }}"
4347
with_items: "{{ pulp_repository_rpm_repos }}"
4448
when: item.state == "present"
49+
loop_control:
50+
label: "{{ item.name }}"

0 commit comments

Comments
 (0)