I installed ansible in Ubunru server 14 using this tutorial http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu
After I checked version of ansible:
$ ansible --version
ansible 1.5.5
But I need 1.9. How to update it?
From Ansible website:
1) First remove installed version of ansible using sudo apt-get remove --purge ansible
2) Now add the correct ppa using sudo apt-add-repository ppa:ansible/ansible
3) Update the package list: sudo apt-get update
4) Install ansible: sudo apt-get install ansible
I had the same issues as you. Above steps worked like a charm :)
Are you sure you installed it correctly? The version in the PPA for 14.04 is 1.9.4-1, so I don't know where 1.5.5 would be coming from.
In any case, you could try erasing ansible (sudo apititude erase ansible should work), and installing ansible with pip as per http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-pip
(Namely, have pip installed, then run pip install --upgrade ansible)
Related
I am trying to install the azure-cli locally from a cloned repository. I successfully installed homebrew on my end. However, when I try to install the azure-cli, the error occurs below at the very end:
From the repository, the instructions work on other devices, both on windows and linux. I don't know why it won't work on my end:
Step 1: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2: brew tap-new <name>/azure-cli
Step 3: brew extract azure-cli <name>/azure-cli --version 2.29.2
Step 4: brew install <name>/azure-cli/azure-cli#2.29.2 (This is where error occurs)
*Note: the section is the name of the user of my laptop.
Other part of the installation process I've successfully installed:
Decorator setup:
sudo apt install python3-pip
sudo /usr/bin/pip3 install --system decorator
Azure Functions Core Tools:
npm i -g azure-functions-core-tools#3 --unsafe-perm true
We have ran the below cmdlets in our local environment to install Home brew & azure cli on azure Linux virtual machine which is running with Ubuntu 20.04 image.
Here are the list of Linux cmdlets used:
sudo apt update
sudo apt-get install build-essential
sudo apt install git -y ##installing git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ##Run Homebrew installation Script
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" ##Add Homebrew to your path
To ensure everything is working correctly to use brew, we can run its command
brew doctor
It may give the warning to install GCC and to remove that simply install it using brew
brew install gcc
To install azure-cli with last version as per the documentation
brew install azure-cli
Here is the output screenshot for reference:
You can refer this blog to install home brew on Ubuntu20.04 linux machine.
I'm using Ubuntu 16.04 with an already installed libhwloc5 package of version 1.11.2. I want to install it with version 1.11.5 or above. I've tried to remove it and run
sudo apt-get update
then I run
sudo apt-get install libhwloc5
but it installs the same old version, how can I specify the version of installation?
You could specify the version of your package like this:
sudo apt-get install libhwloc5=<version-number-here>
Example: apt-get install virtualbox=5.0.18-dfsg-2build1
I'm trying a simple thing like creating a Resource group in Azure via an Ansible Playbook, but I need the Azure Python SDK for it. I can't install the SDK with pip install azure because Microsoft doesn't support it anymore, which is completely illogical because Ansible keeps showing ModuleNotFoundError errors every time I execute the playbook, and I have to install them all manually...
Any more efficient way to do this?
I believe you're looking to install Ansible Azure module. So please try the following,
If you already have python and pip installed, use the command pip install ansible[azure], to install Azure modules.
Otherwise Try the following, and see if that helps,
On Windows,
Install Python
Install PIP
Add python and pip installation path to Windows PATH variable
Install Ansible Azure Module: pip install ansible[azure]
On CentOS 7.4,
Install python and pip:
sudo yum check-update; sudo yum install -y gcc libffi-devel python-devel openssl-devel epel-release
sudo yum install -y python-pip python-wheel
Install Ansible Azure Module:
sudo pip install ansible[azure]
On Ubuntu 16.04 LTS,
Install python and pip:
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev python-pip
Install Ansible Azure Module:
sudo pip install ansible[azure]
I am trying to install docker in Ubuntu 16.04. I am following this link for docker installation. I am ending up with Unable to locate package docker-engine
My current kernal version - 4.4.0-38-generic
Ubuntu version - 16.04
The docker package already inside Ubuntu is called docker.io [1] so just do
sudo apt-get install docker.io
But if you follow that link you gave and do steps 7, 8, 9 then your installation will know about the package at the docker repo and also find docker-engine.
Your call. I run the Ubuntu version (currently 0.11.2 on Ubuntu 16.04) on some machines, and the one from Docker on others (as I was curious about some 0.12 features). Both will work just fine.
[1] As docker is used for a desktop launcher application 'docking' icons.
I faced the same issue on AWS-EC2 with ubuntu-18.04 server...
running apt-get update does the trick for me....
Once update runs fine then run apt-get install docker.io
Docker-compose-plugin is put into the docker.io repo.
Running sudo apt install docker.io ,or apt-get in older Ubuntu versions, will also get you the files you need. First you will need to run update to make sure you have most recent versions. sudo apt update
The main solution which solved most of the issues in docker is installing 64-bit version of ubuntu. I was running with 32-bit(i686). Hope it helps ! !
I wasn't able to install docker with the current other solutions but managed to get rid of the "Unable to locate package docker-engine" error with a solution mentioned on the GitHub repo issues (issue of May 31, 2020).
The solution was to run these commands:
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
Trying to run an ansible installation on ubuntu 14.04
ansible-playbook -i hosts ruby-webapp.yml -t swap,ruby,deploy,mysql,nginx,ufw,import_data
I get
ERROR: ufw is not a legal parameter in an Ansible task or handler
and I can't go forward with the rest of the installation.
ufw was was added as a system module to Ansible 1.6 (see http://docs.ansible.com/ufw_module.html).
You are probably running an older version of Ansible on your control node (i.e., the machine where you are invoking the ansible-playbook command). Check your version with:
ansible --version
Upgrading depends on how you installed Ansible originally, but if you installed it to your system as root using pip, you can probably use:
sudo pip install -U ansible
(The -U means "update")
Edit: Just realized that you might be running Ubuntu 14.04 as your control node so I checked to see what version you get when you install Ansible with apt-get. As of this writing, it installs version 1.5.4, so if that's how you installed it, you definitely have the wrong version. You probably want to uninstall the OS package version and use one of the recommended installation techniques: http://docs.ansible.com/intro_installation.html#running-from-source
Something like:
sudo apt-get remove ansible
sudo easy_install pip
sudo pip install ansible
If you are missing easy_install, you may install it with:
sudo apt-get install python-setuptools