DevOps Classroomnotes 11/Jan/2023

Ansible lookups

  • Refer Here for official lookup docs.
  • Lookups work with the help of lookup plugins Refer Here
  • To understand lookups better, lets install the Ansible traditional way and look into ansible configuration files
  • execute ansible –version
    Preview
  • The hosts file in /etc/ansible acts as default inventory
  • Ansible.cfg in /etc/ansible is the configuration file of ansible where settings of ansible are defined.

Ansible Configuration file

  • Refer Here for the official docs.
  • Refer Here for the generated ansible.cfg using ansible-config command
  • Ansible also has inventory plugins. Refer Here
  • Configuring community modules into ansible
  • Ansible two ways of working

    • From infra provisioning:
      • one node at a time
      • playbooks and roles/collections
    • Directly as Configuration Management
      • multi node
      • Configure lookups, plugins etc
      • playbooks and roles/collections, lookups, inventories etc.

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube