francsw / EX407-Ansible-Automation

Red Hat Certified Specialist in Ansible Automation (EX407) Preparation Course
0 stars 0 forks source link

LAB: Working with Ansible Inventories #3

Open francsw opened 3 years ago

francsw commented 3 years ago
francsw commented 3 years ago

`#!/bin/bash

echo "Called as: $*" >> log

if [ "$1" == "--list" ] ; then echo '{ "localhost" : [ "localhost" ] }' else echo '{ "some_variable": "some value" }' fi`