Skip to content

Commit

Permalink
Merge pull request HewlettPackard#59 from Rainforest/firmware_driver_…
Browse files Browse the repository at this point in the history
…sample

Extracting the firmware name to use the playbook vars
  • Loading branch information
GustavoHennig committed Jul 29, 2016
2 parents 28a44a0 + b27c2dd commit c517cf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/oneview_firmware_driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
- hosts: all
vars:
config: "{{ playbook_dir }}/oneview_config.json"
firmware_name: "" # provide your firwmare name here
tasks:
- name: Delete the Firmware Driver
oneview_firmware_driver:
config: "{{ config }}"
state: absent
name: "Service Pack for ProLiant.iso"
name: "{{ firmware_name }}"
delegate_to: localhost

- name: Do nothing when Firmware Driver is absent
oneview_firmware_driver:
config: "{{ config }}"
state: absent
name: "Service Pack for ProLiant.iso"
name: "{{ firmware_name }}"
delegate_to: localhost

0 comments on commit c517cf3

Please sign in to comment.