summaryrefslogtreecommitdiff
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml8
1 files changed, 0 insertions, 8 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 74a17d4..ca46771 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -14,18 +14,10 @@
status_code: [200, 404]
register: get_device
-- name: Print rest data
- debug:
- msg: "Rest Data: {{ get_device.json }}"
-
- name: Set device state facts
ansible.builtin.set_fact:
device_data: "{{ get_device.json }}"
device_exists: "{{ get_device.json.status == 'ok' }}"
-
-- name: Print device exists
- debug:
- msg: "Exists : {{ device_exists }}"
- name: Create the device if it doesn't exist
ansible.builtin.uri: