How to install Ansible on Ubuntu | Setup Ansible on Ubuntu Ec2 | Ansible Installation on Ubuntu EC2

Поділитися
Вставка
  • Опубліковано 28 жов 2020
  • Ansible is #1 configuration management tool. It can also be used for infrastructure provisioning as well. or You can use Ansible in combination of Terraform which can take care of infra automation and Ansible can do configuration management.
    www.coachdevops.com/2020/04/i...
    The best way to install Ansible for Ubuntu is to add the project's PPA (personal package archive) to your system. You also would need Boto framework for provisioning resources in AWS cloud.
    Update Repository by including the official project’s PPA
    sudo apt-get update
    sudo apt-add-repository -y ppa:ansible/ansible
    then you need to refresh the package by executing the below command:
    sudo apt-get update
    Now you can install Ansible:
    sudo apt-get install -y ansible
    sudo apt install python-pip -y
    ( this is just comment - Package manager for python)
    Install Boto Framework - AWS SDK
    sudo pip install boto boto3
    Ansible will access AWS resources using boto SDK.
    sudo apt-get install python-boto -y
    pip list boto | grep boto
    (the above command should display below output)
    Ignore warning in Red color.
    ansible --version
  • Наука та технологія

КОМЕНТАРІ • 10

  • @ossama3115
    @ossama3115 2 роки тому +1

    Nice work, keep continuing

  • @leelamaheshbabu4125
    @leelamaheshbabu4125 2 роки тому

    how to change the python version in ansible from 3 to 2.7

  • @user-kz1im1ec9z
    @user-kz1im1ec9z Рік тому +1

    While running ansible --version ((getting the below error))
    ERROR! Unexpected Exception, this is probably a bug: 'type' object is not iterable

  • @rhythmchoudhary2377
    @rhythmchoudhary2377 2 роки тому

    hello ,
    After installing Ansible there is no config file.
    How can i solve i tried installing on multiple machines but everytime i install there is no config file created.
    Can you please help?
    Thanks

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      where did you install? what OS?

  • @Ankasa11
    @Ankasa11 Рік тому

    This is the error I get when I try to install boto, boto3;
    sudo pip install boto boto3
    sudo: pip: command not found

    • @DevOpsCoach
      @DevOpsCoach  Рік тому

      Make sure you install pip first by executing below command:
      sudo apt install python-pip -y

  • @lucifermorningstar5332
    @lucifermorningstar5332 2 роки тому

    boto isnt installing

    • @DevOpsCoach
      @DevOpsCoach  2 роки тому

      What’s the error you are getting? Where are you installing?