Skip to content

Commit

Permalink
satisfy checkov
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed May 16, 2024
1 parent a276ae7 commit 452b89d
Show file tree
Hide file tree
Showing 13 changed files with 311 additions and 301 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM quay.io/almalinuxorg/8-init
#checkov:skip=CKV_DOCKER_2: no need for health check
#checkov:skip=CKV_DOCKER_3: no need for special user
FROM quay.io/almalinuxorg/8-init:latest
ENV container docker

RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done);
Expand Down
1 change: 1 addition & 0 deletions tasks/backups.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
#checkov:skip=CKV2_ANSIBLE_3: Block is only used for the when condition and the tags
- name: Create backup directories
ansible.builtin.file:
path: "{{ item }}"
Expand Down
1 change: 1 addition & 0 deletions tasks/convert_user_to_ldif.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
#checkov:skip=CKV2_ANSIBLE_3: Block is used for the when condition only
- name: Select passwd line
ansible.builtin.command: 'grep "^{{ user_data_item.name }}:" /var/tmp/passwd.mig'
register: passwd_mig_content
Expand Down
1 change: 1 addition & 0 deletions tasks/httpd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
#checkov:skip=CKV2_ANSIBLE_3: Block is used for the when condition only
- name: Open firewall
tags:
- dyndns
Expand Down
1 change: 1 addition & 0 deletions tasks/imapsync.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
#checkov:skip=CKV2_ANSIBLE_3: Block is only used for the when condition and the tags
- name: Sync old IMAP account to the current mailbox
no_log: yes
when: current_user.old_imap_mail is defined
Expand Down
Loading

0 comments on commit 452b89d

Please sign in to comment.