-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcumulus-bin-install.yml
More file actions
42 lines (35 loc) · 985 Bytes
/
cumulus-bin-install.yml
File metadata and controls
42 lines (35 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- hosts: switches
remote_user: cumulus
become: yes
gather_facts: yes
vars:
http_server: 10.62.10.22
install_file: http://{{ http_server }}/cumulus-linux-3.5.0-bcm-amd64.bin
tasks:
- name: onie-nos-install Cumulus Linux NOS
become_method: sudo
shell: 'onie-install -f -a -i {{ install_file }}'
tags: onie_nos_install
notify:
- restart switch
- wait for switch to come back up
# - name: reboot immediately
# meta: flush_handlers
# notify:
# - restart switch
# - wait for switch to come back up
handlers:
- name: restart switch
command: shutdown -r now "Ansible updates triggered"
async: 0
poll: 0
ignore_errors: true
- name: wait for switch to come back up
become: no
local_action: wait_for host={{ inventory_hostname }}
connect_timeout=5
port=22
delay=20
timeout=2000
state=started