Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
70いいね 5543回再生

How to use Ansible Environment variables? - Part 8

▬▬▬▬▬▬ 🎉 🔥 Udemy Course - AWS Networking Zero to Hero!🔥 🎉▬▬▬▬▬▬
🚀 AWS Networking Masterclass! - www.udemy.com/course/aws-networking-zero-to-hero-m…

▬▬▬▬▬▬ 🎉 🔥 Udemy Course - Master Azure Like a Pro!🔥 🎉▬▬▬▬▬▬
🚀 Master Azure Like a Pro! - www.udemy.com/course/azure-cloud-zero-to-hero/?ref…

▬▬▬▬▬▬ 🙍🏻‍♂️Join YouTube Membership ▬▬▬▬▬▬
Join this channel to get access to perks:
youtube.com/channel/UC7p4oXcPbgk_yTSHK7QlkSg/join

▬▬▬▬▬▬ 🙍🏻‍♂️ Members Only Videos ▬▬▬▬▬▬
Member Only videos -    • Members-only videos  

▬▬▬▬▬▬ 🗓️ Book Me for Consultation ▬▬▬▬▬▬
Calender - tidycal.com/rahulwagh17

▬▬▬▬▬▬ 🚀 Courses ▬▬▬▬▬▬

1. Terraform -    • HashiCorp Terraform Associate Certificatio...  
2. Ansible -    • Ansible for Beginners: Learn the Fundament...  
3. Prometheus & Grafana -    • Getting started with Prometheus Grafana an...  
4. Helm Chart -    • Complete Helm Chart Tutorial: From Beginne...  
5. Hashi Corp vault -    • HashiCorp Vault Installation - Part 1 | Ha...  

▬▬▬▬▬▬ ⭐️ Guide and Repository ⭐️ ▬▬▬▬▬▬
Github Repository : github.com/rahulwagh/ansible-examples.git

The configuration parameters needed for Ansible to function on a specific system are defined using Ansible environment variables. These parameters can be adjusted at a number of different levels, such as system-wide, user-specific, or even inside a particular playbook or job.

In Ansible, a few of the frequently used environment variables are as follows:

The path of the Ansible configuration file is specified by the variable ANSIBLE_CONFIG. Ansible searches for the configuration file at /etc/ansible/ansible.cfg by default, but you may provide an alternative path using this option.

The path to the inventory file is specified by the variable ANSIBLE_INVENTORY. The hosts that Ansible will execute against are specified in the inventory file.

The path to unique Ansible modules is specified by the option ANSIBLE_LIBRARY.

The path to the module utility files is specified by the variable ANSIBLE_MODULE_UTILS.

The remote user that Ansible will use when connecting to a host is specified by the variable ANSIBLE_REMOTE_USER.

When connecting to a host, any additional SSH arguments should be given using the variable ANSIBLE_SSH_ARGS.

The maximum length of time that Ansible should wait for a response from a host is determined by the variable ANSIBLE_TIMEOUT.

These variables can be set in a number of methods, including through configuration files, shell environment variables, and the -e option on the command line.

▬▬▬▬▬▬ ⭐️ Time Stamps ⭐️ ▬▬▬▬▬▬

0:00 Introduction
01:18 How to create environment variable in ansible playbook?
02:32 How to define environment variable at Task level?
04:04 Run the playbook to verify environment variables

▬▬▬▬▬▬ ⭐️ Follow me ⭐️ ▬▬▬▬▬▬

Linkedin - www.linkedin.com/in/rahul-wagh/
Twitter - twitter.com/wagh_rahul

To learn more on DevOps visit - jhooq.com/
Learn more onto Anisble - www.ansible.com/

Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.

Video is copyrighted and can not be re-distributed

コメント