Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code and make job_card more generic #288

Merged
merged 3 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ibm_concert/cert_renewal/inventories/host_vars/zos_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ ansible_python_interpreter: "{{ PYZ }}/bin/python3"

# varibles for templates
JOB_CARD: |-
//HZSPRINT JOB ,
// MSGCLASS=H,MSGLEVEL=(1,1),CLASS=A
//ANSIBLE JOB ,
// MSGCLASS=msg_class,MSGLEVEL=(1,1),CLASS=job_class
13 changes: 0 additions & 13 deletions ibm_concert/cert_renewal/renew_cert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@
cert_type: 'USER' # defautl to USER
cert_label: ''
sign_with: 'CERTAUTH' # blank or CERTAUTH
# sign_label: 'IBM CA'
keyring_name: ''
expiry_date: '2025-12-31'
cert_detail: {}
cert_args: {}
cert_found: false
today: ''

uss_file_path: '{{ playbook_tmp_dir.path }}'

tasks:
- ansible.builtin.debug:
var: sn_short_desc
Expand Down Expand Up @@ -64,12 +61,6 @@
'cert_type': 'CERTAUTH'
when: arg_cert_type is search('CERTAUTH')

- name: Create temporary directory for playbook use
ansible.builtin.tempfile:
state: directory
path: /tmp
register: playbook_tmp_dir

- block:
- name: Run Health Checker
ibm.ibm_zos_core.zos_operator:
Expand Down Expand Up @@ -295,10 +286,6 @@
delegate_to: localhost

always:
- name: Delete the temporary directory
ansible.builtin.file:
path: "{{ playbook_tmp_dir.path }}"
state: absent
- name: Delete the CSV on z/OS
ansible.builtin.file:
path: /tmp/{{ concert_csv_file }}
Expand Down
12 changes: 0 additions & 12 deletions ibm_concert/cert_renewal/send_cert_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
gather_facts: false
environment: "{{ environment_vars }}"
vars:

# IBM Concert variables
concert_hostname: ''
concert_instance_id: ''
Expand All @@ -26,15 +25,8 @@
sysout_lines: []
cert_found: false

uss_file_path: '{{ playbook_tmp_dir.path }}'

tasks:
- name: Create temporary directory to store bank files
ansible.builtin.tempfile:
state: directory
path: /tmp
register: playbook_tmp_dir

- block:
- name: Run Health Checker
ibm.ibm_zos_core.zos_operator:
Expand Down Expand Up @@ -175,10 +167,6 @@
delegate_to: localhost

always:
- name: Delete the temporary directory
ansible.builtin.file:
path: "{{ playbook_tmp_dir.path }}"
state: absent
- name: Delete the CSV on z/os
ansible.builtin.file:
path: /tmp/{{ concert_csv_file }}
Expand Down
Loading