Sha256: 4c242680886e28bca44fb3bab46d2ad7dab8b4d35d453d5884a8febd7d892e23
Contents?: true
Size: 594 Bytes
Versions: 74
Compression:
Stored size: 594 Bytes
Contents
<%# name: Power Action - Ansible Default job_category: Ansible Power description_format: "%{action} host" snippet: false template_inputs: - name: action required: true input_type: user description: Action to perform on the service options: "restart\r\nshutdown" advanced: false provider_type: Ansible kind: job_template model: JobTemplate %> --- - hosts: all tasks: - shell: | echo <%= input('action') %> host && sleep 3 <%= case input('action') when 'restart' 'shutdown -r +1' else 'shutdown -h +1' end %>
Version data entries
74 entries across 74 versions & 1 rubygems