makeporngreatagain.pro
yeahporn.top
hd xxx

Setting-up Hosts file

413
  1. Default directory for hosts file is /etc/ansible
  2. Create a directory in /home/ec2-user using:
    mkdir ansible
    
    cd ansible
  3. Lets create our own hosts file in /home/ec2-user/ansible using
    vim hosts-dev

    Content of hosts-dev

    # hosts-dev
    
    [webservers]
    <IP_ADDRESS>
    <IP_ADDRESS>
    
    [loadbalancers]
    <IP_ADDRESS>
    
    [local]
    control ansible_connection=local

    OR

    # hosts-dev
    
    [webservers]
    app1 ansible_host=<IP_ADDRESS>
    app2 ansible_host=<IP_ADDRESS>
    
    [loadbalancers]
    lb1 ansible_host=<IP_ADDRESS>
    
    [local]
    control ansible_connection=local
  4. Now try to get inventory files using:
    ansible -i hosts-dev --list-hosts all
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.