Pasang ansible di docker ubuntu
Ada kebutuhan untuk pasang ansible versi terakhir di docker ubuntu container.
Setelah install dengan command :
#apt install ansible
Ternyata ansible yg di install versi 2.5 .
Kita perlu update ke versi terbaru
Dengan cara :
#add-apt-repository ppa:ansible/ansible
Ternyata gagal.
Cari-cari cara di internet, referensi dapat di web :
https://help.ubuntu.com/community/Repositories/Ubuntu#Adding_PPAs
Disuruh install :
python-software-properties
Setelah dijalankan, hasilnya :
------------------
# apt install -y python-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
software-properties-common
E: Package 'python-software-properties' has no installation candidate
---------------------
Gagal install, disuruh install : software-properties-common
Dengan menjalankan command install :
# apt install software-properties-common
Selesai, maka coba jalankan kembali command :
#add-apt-repository ppa:ansible/ansible
Berhasil.
Selanjutnya upgrade ansible ke versi terakhir, dengan command :
# apt install ansible
Selesai install ansible, hasilnya adalah kita dapat versi terbaru ansile. Dengan cara verifikasi command :
# ansible --version
ansible 2.9.1
No comments:
Post a Comment