summaryrefslogtreecommitdiffstats
path: root/ansible/deployment_poc/tasks/netbox_evaluate_interface.yml
blob: b6fd428706fb4f29ff66376972475119bcef68e4 (plain)
1
2
3
4
5
6
7
8
9
10
---
- name: Register interface ID
  set_fact:
    ifid: '{{ nb_interface_2.json.results[0].id }}'
  when: "nb_interface_1.status|int == 400"

- name: Register interface ID
  set_fact:
    ifid: '{{ nb_interface_1.json.id }}'
  when: "nb_interface_1.status|int == 201"