aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2020-05-13 11:46:46 +0000
committerPeter Mikus <pmikus@cisco.com>2020-05-14 11:56:49 +0000
commit69e76e53c1d01ae735ca82f778a112d49f1b7d3f (patch)
treee1d809948f666885605575768abcfcf44ce47ab1 /resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml
parent1347952646201a149feee747e22db7cd71252919 (diff)
Ansible: Small maintenance
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I542401d77a777dfc2d930de626e19c1d8083941c (cherry picked from commit f9f7672ff42274dd05320c153cd8efc7a9986e7e)
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml48
1 files changed, 0 insertions, 48 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml
deleted file mode 100644
index decda18649..0000000000
--- a/resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
----
-# file: roles/vexx_hosts/tasks/main.yaml
-
-- name: Ensure the system exists in Cobbler
- cobbler_system:
- host: "{{ cobbler_hostname }}"
- port: 60080
- interfaces:
- br1:
- ipaddress: "{{ ansible_default_ipv4.address }}"
- macaddress: "{{ ansible_default_ipv4.macaddress }}"
- name: "{{ hostname }}"
- password: "{{ cobbler_password }}"
- properties:
- hostname: "{{ hostname }}"
- gateway: "{{ ansible_default_ipv4.gateway }}"
- profile: "{{ cobbler_profile }}"
- name_servers: "{{ name_servers }}"
- kickstart: "/var/lib/cobbler/kickstarts/{{ cobbler_profile }}.seed"
- kernel_options: '"interface={{ ansible_default_ipv4.interface }}"'
- netboot_enabled: yes
- username: "{{ cobbler_username }}"
- use_ssl: no
- validate_certs: no
- when: provision_enabled
- delegate_to: localhost
- tags:
- - cobbler-include
-
-- name: Commit Cobbler changes
- cobbler_sync:
- host: "{{ cobbler_hostname }}"
- port: 60080
- password: "{{ cobbler_password }}"
- username: "{{ cobbler_username }}"
- use_ssl: no
- validate_certs: no
- run_once: yes
- when: provision_enabled
- delegate_to: localhost
- register: __included_in_cobbler
- notify:
- - "Boot from network"
- - "Reboot server"
- tags:
- - cobbler-include
-
-- meta: flush_handlers