makeporngreatagain.pro
yeahporn.top
hd xxx

Setting-Up Ansible Configuration file

402
  1. In last lab, we got the inventory of host from Ansible by running
    ansible -i hosts-dev –list-hosts all
  2. Above we needed to specify Ansible which host file to refer, we can declared reference in ansible.cfg then we wouldn’t need to specify hosts file again
  3. Default directory for ansible.cg is /etc/ansible
  4. Lets create our own ansible .cfgfile in /home/ec2-user/ansible using
    vim ansible.cfg

    Content of ansible.cfg

    # ansible.cfg
    
    [defaults]
    inventory = ./hosts-dev
  5. Now try to following commands:
    ansible --list-hosts all
    ansible --list-hosts webservers
    ansible --list-hosts loadbalancers
    ansible --list-hosts webservers:loadbalancers
    ansible --list-hosts webservers[0]
Leave A Reply

Your email address will not be published.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.