Skip to content

Commit

Permalink
remove test playbooks and send all expired certs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Nguyen <[email protected]>
  • Loading branch information
adn1107 committed Nov 13, 2024
1 parent 5884535 commit 5739dd0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 152 deletions.
82 changes: 0 additions & 82 deletions ibm_concert/cert_renewal/create_USER_cert.yml

This file was deleted.

50 changes: 0 additions & 50 deletions ibm_concert/cert_renewal/delete_cert.yml

This file was deleted.

39 changes: 19 additions & 20 deletions ibm_concert/cert_renewal/send_cert_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,25 @@
'cert_type': 'USER',
'cert_label': item[16:48]}]}}"
loop: "{{report_lines}}"
# when: item is search('E ID')
when: item is search('STCUSR')

# - name: Search for CERTAUTH in report
# ansible.builtin.set_fact:
# expiring_certs: "{{ expiring_certs | default([]) + [{
# 'owner_id': '',
# 'cert_type': 'CERTAUTH',
# 'cert_label': item[16:48]}]}}"
# loop: "{{report_lines}}"
# when: item is search('CERTAUTH')

# - name: Search for SITE in report
# ansible.builtin.set_fact:
# expiring_certs: "{{ expiring_certs | default([]) + [{
# 'owner_id': '',
# 'cert_type': 'SITE',
# 'cert_label': item[16:48]}]}}"
# loop: '{{report_lines}}'
# when: item is search('SITE')
when: item is search('E ID')

- name: Search for CERTAUTH in report
ansible.builtin.set_fact:
expiring_certs: "{{ expiring_certs | default([]) + [{
'owner_id': '',
'cert_type': 'CERTAUTH',
'cert_label': item[16:48]}]}}"
loop: "{{report_lines}}"
when: item is search('CERTAUTH')

- name: Search for SITE in report
ansible.builtin.set_fact:
expiring_certs: "{{ expiring_certs | default([]) + [{
'owner_id': '',
'cert_type': 'SITE',
'cert_label': item[16:48]}]}}"
loop: '{{report_lines}}'
when: item is search('SITE')

- ansible.builtin.debug:
msg: "Num of expiring certs: {{expiring_certs | length}}"
Expand Down

0 comments on commit 5739dd0

Please sign in to comment.