ansible / instruqt

Self-paced instruqt Training material
66 stars 59 forks source link

event_driven_netops: malformed YAML in instructions #624

Open arusakov-rh opened 3 days ago

arusakov-rh commented 3 days ago

Challenge 1, last step: the "Port is up" snippet for the rulebook looks like this:

- name: Port is up
  condition: event.fields.admin_status == "UP"
  action:
   run_playbook:
   name: new_port_config.yml

which is not what ansible-rulebook would expect, should rather be

- name: Port is up
  condition: event.fields.admin_status == "UP"
  action:
    run_playbook:
      name: new_port_config.yml