Skip to content

Commit 0e2ec52

Browse files
authored
Add file deletion to cleanup play (#600)
* add file deletion to cleanup play * bump CI image * add bacin deleted OOD file and fix paths in /etc * bump CI image
1 parent 0dcf774 commit 0e2ec52

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

ansible/cleanup.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,21 @@
3838

3939
- name: Cleanup /tmp
4040
command : rm -rf /tmp/*
41-
41+
42+
- name: Delete files triggering vulnerability scans
43+
ansible.builtin.file:
44+
path: "{{ item }}"
45+
state: absent
46+
loop: # NB: items here MUST have a justification!
47+
# ondemand install: raised at https://github.com/OSC/ondemand/security/advisories/GHSA-f7j8-ppqm-m5vw
48+
# All declared not to be an issue by Open Ondemand as relevant packages not installed
49+
- "/opt/ood/ondemand/root/usr/share/gems/3.1/ondemand/{{ ondemand_package_version }}-1/gems/bootstrap_form-2.7.0/test/dummy/Gemfile.lock"
50+
- "/opt/ood/ondemand/root/usr/share/gems/3.1/ondemand/{{ ondemand_package_version }}-1/gems/bootstrap_form-4.5.0/demo/yarn.lock"
51+
- /var/www/ood/apps/sys/dashboard/node_modules/data-confirm-modal/Gemfile.lock
52+
# chrony role: only used for role dev, venv never created on disk
53+
- /etc/ansible-init/playbooks/roles/mrlesmithjr.chrony/poetry.lock
54+
- /etc/ansible-init/playbooks/roles/mrlesmithjr.chrony/requirements.txt
55+
4256
- name: Get package facts
4357
package_facts:
4458

environments/.stackhpc/hooks/post.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"cluster_image": {
3-
"RL8": "openhpc-RL8-250221-0904-e4ff694e",
4-
"RL9": "openhpc-RL9-250221-0904-e4ff694e"
3+
"RL8": "openhpc-RL8-250305-1110-534ed276",
4+
"RL9": "openhpc-RL9-250305-1110-534ed276"
55
}
66
}

0 commit comments

Comments
 (0)