+++ /dev/null
-##############################################################################
-# Copyright (c) 2017 ZTE Corporation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
----
-
-allow_duplicates: yes
-dependencies:
- - { role: qtip-common, basename: ceph-disk-info }
- name: get system network info
- shell: netstat -nr |grep "U" | awk '{printf "interface %s network %s mask %s \n",$8,$1, $3 }'
+ shell: netstat -nr |grep "U" | awk '{printf "interface %s network %s mask %s \n",$8,$1, $3 }'
register: ceph_network_out
- name: saving output to log
- cluster_network
delegate_to: localhost
-- name: append
+- name: append
lineinfile:
dest: "{{ logfile }}"
line: "cluster_network {{ cluster_network }}"