0

I have an ansible project where I am running a shell script like shown below. I want to set a variable in octopus CI/CD from the output of that script. Can you please suggest how I can achieve this?

This my current ansible code:

#verifying expiry date of jks files
- name: check for the expiry date
  shell: "bash /opt/bin/tools/expirynotif.sh"
  ignore_errors: false
  register: command_result

      
- name: Display status
  debug:
    var: command_result
Zeitounator
  • 38,476
  • 7
  • 53
  • 66
Ekta
  • 261
  • 1
  • 2
  • 11

0 Answers0