blob: 03cd283c9d8a530ccdac37dc4872113f63baae3c [file] [log] [blame]
---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Get platform type
slurp:
src: /etc/onl/platform
register: etc_onl_platform
- name: Set platform var
set_fact:
platform: "{{ etc_onl_platform.content | b64decode | trim }}"
- name: Manage OFDPA
include: ofdpa.yml platform="{{ platform }}"
when: platform in platforms.accton_switches.names or platform in platforms.quanta_switches.names
- name: Manage Accton OLT
include: olt-accton.yml
when: platform in platforms.accton_olts.names
- name: Authorize SSH Key
become: yes
authorized_key:
key={{ pub_ssh_key }}
user=root
state=present
register: sshkey