Skip to content

Commit

Permalink
make job settings generic and remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Nguyen <[email protected]>
  • Loading branch information
adn1107 committed Nov 4, 2024
1 parent cb265ef commit 2a211d0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion ibm_concert/cert_renewal/HZSPRINT.J2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ JOB_CARD }}
{{ HZSPRINT_JOB_CARD }}
//HZSPRINT EXEC PGM=HZSPRNT,TIME=1440,REGION=0M,PARMDD=SYSIN
//SYSIN DD *,DLM='@@'
CHECK(IBMRACF,RACF_CERTIFICATE_EXPIRATION)
Expand Down
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 @@ -25,6 +25,6 @@ ZOAU: "path_to_zoau"
ansible_python_interpreter: "{{ PYZ }}/bin/python3"

# varibles for templates
JOB_CARD: |-
HZSPRINT_JOB_CARD: |-
//HZSPRINT JOB ,
// MSGCLASS=H,MSGLEVEL=(1,1),CLASS=A
// MSGCLASS=msg_class,MSGLEVEL=(1,1),CLASS=job_class
20 changes: 10 additions & 10 deletions ibm_concert/cert_renewal/renew_cert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
cert_found: false
today: ''

uss_file_path: '{{ playbook_tmp_dir.path }}'
# uss_file_path: '{{ playbook_tmp_dir.path }}'

tasks:
- ansible.builtin.debug:
Expand Down Expand Up @@ -64,11 +64,11 @@
'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
# - name: Create temporary directory for playbook use
# ansible.builtin.tempfile:
# state: directory
# path: /tmp
# register: playbook_tmp_dir

- block:
- name: Run Health Checker
Expand Down Expand Up @@ -295,10 +295,10 @@
delegate_to: localhost

always:
- name: Delete the temporary directory
ansible.builtin.file:
path: "{{ playbook_tmp_dir.path }}"
state: absent
# - 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
21 changes: 10 additions & 11 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,14 +25,14 @@
sysout_lines: []
cert_found: false

uss_file_path: '{{ playbook_tmp_dir.path }}'
# 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
# - name: Create temporary directory to store bank files
# ansible.builtin.tempfile:
# state: directory
# path: /tmp
# register: playbook_tmp_dir

- block:
- name: Run Health Checker
Expand Down Expand Up @@ -175,10 +174,10 @@
delegate_to: localhost

always:
- name: Delete the temporary directory
ansible.builtin.file:
path: "{{ playbook_tmp_dir.path }}"
state: absent
# - 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

0 comments on commit 2a211d0

Please sign in to comment.