Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "ansible"

Step by Step Install Ansible on Ubuntu OS

Although I had already written a few articles on How to install Ansible on Linux for vSphere configuration and Using Ansible for Managing VMware vsphere Infrastructure, this blog relates to different OS. I switched my lab Linux OS from CentOS to Ubuntu and Here are the step by step procedure to …

Read more

Install Ansible AWX on Microsoft Windows OS

I was working on upgrading my Ansible AWX server in my lab, while upgrading/installing fresh Ansible AWX Tower server I found the step by step instructions I tried long back Install Ansible AWX Tower on Ubuntu Linux are absolutes now and no longer working as Ansible AWX team made few changes to it.…

Read more

Ansible Error couldn't resolve module vmware.vmware_rest

After resolving error VMware ansible Error couldn't resolve module community.vmware, I faced another error while upgrading hardware version on the VMware Virtual Machines, while using ansible vmware.guest in the task. Which derived from main module/plugin vmware.vm_rest. Below is the test tem…

Read more

VMware ansible Error couldn't resolve module community.vmware

Recently while working with one of the old ansible server where I wanted to automation to get the list of VMware vCenter virtual machines list, and the ansible playbook was failing due to few prerequisite, In below script I was using community.vmware.vmware_vm_info ansible module/plugin to get th…

Read more

Reset Ansible AWX Tower admin password

While working on one of the project I came accross a Ansible AWX server where 'admin' password as missing, and I wanted to reset forgotten awx password, the steps given here will also work on RedHat Ansible Tower. In my case AWX is containerised and installed on docker, and I will run highlighted co…

Read more

Ansible AWX Tower create Manual SCM (Source Control Credential Type) project

I had a instance where I wanted to test Manual SCM (Source Control Credential Type) project on new Project on Ansible AWX tower instead of git repository. While creating a new project when choosing Manual from the Source Control Credential Type (SCM), I was receiving below error.

Getting started …

Read more

docker: Got permission denied while trying to connect to the Docker daemon socket

Ansible AWX installation error docker-compose run --rm --service-ports task awx-manage migrate --no-input

This was another error I saw while deploying Ansible AWX on ubuntu linux. 

Ansible AWX installation error Cannot have both the docker-py and docker python modules
Install Ansible AWX Tower on Ubuntu Linux

TASK [local_docker :  Run migrations in task container]
fatal: [localhost]: FAILED! …

Read more

Ansible AWX installation error Cannot have both the docker-py and docker python modules

While installing Ansible AWX on Ubuntu I was receiving below error, while installing Ansible AWX it was giving below error.

TASK [local_docker : Remove AWX containers before migrating postgres so that the old postgres container does not get used] ***********************************
fatal: [lo…

Read more

Install Ansible AWX Tower on Ubuntu Linux

Ansible is a software tool that offers simple but powerful automation for cross-platform operating systems and computer support. It is mainly planned for IT professionals, who use it for application deployment, updates on workstations and servers, cloud provisioning, configuration management, intra-…

Read more

Ansible get information from esxi advanced settings nested dictionary with unique keynames

After my earlier post ansible create an array with set_fact, I wanted to grab some selected information from VMware ESXi Advanced setting. but the problem was when I use ansible module vmware_host_config_info, information generated here was in below json format. (Note:  There are tons of advanced…

Read more

ansible create an array with set_fact

In one of my vSphere Ansible automation task, I was looking for to create a new array variable using set_fact. here I have achieved the same task using 2 different playbook with small way procedure. In the both methods on the vars I have defined infra variable where I have defined my VMware esxi s…

Read more

Ansible selectattr The error was TemplateRuntimeError no test named 'equalto'

I was working on small Ansible playbook project and wrote a msg to filter nested yaml dictionary as below, in the script is was using selectattr() function to list only selected filtered attribute property information.

Getting started Ansible AWX tower for IT automation run first playbook

Read more

Ansible for VMwary Using vmware_vm_inventory dynamic inventory plugin

Since I started using Ansible for VMware management, Daily I am exploring new thing on vSphere Ansible, and stumbled upon interesting dynamic inventory plugin named vmware_vm_inventory from url https://docs.ansible.com/ansible/latest/plugins/inventory/vmware_vm_inventory.html (for more about pa…

Read more

Remote: Permission to UserName/repo.git denied to OtherUserName fatal: unable to access 'https://github.com/UserName/repo.git/': The requested URL returned error: 403

I was working on the one of the clients project hosted on github.com, I cloned the repo locally added few files to local repo and staged/committed project locally all was good.

git add .
git commit -m 'test'

But when tried to push the changes on remote repo on github.com. I was receiving …

Read more

Getting started Ansible AWX tower for IT automation run first playbook

In this article I will show how to use and run basic playbook with Ansible AWX tower portal. Ansible Tower is a Red Hat product it helps you to centralize and control your IT infrastructure with a visual dashboard, role-based access control, job scheduling, integrated notifications and graphical …

Read more

Using Ansible for Managing VMware vSphere Infrastructure

On this second part article of after How to install Ansible on Linux for vSphere configuration, I have written here 2 Ansible playbook files (play tasks created) to configure VMWare ESXi servers. Language for the ansible playbook files is YAML/YML format. When using Ansible to use on VMware vSph…

Read more

configure remote ssh extension on visual studio code

In my earlier article I wrote How to Setup Passwordless SSH Login on Windows to ease my tasks, to connection between Windows to Linux and this is a second part of the article. I use visual studio code to write my all devops codes, most of the time whenever I want to test the script on linux, free t…

Read more

How to install Docker on Linux

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. This is step by step guide …

Read more

How to install Ansible on Linux for vSphere configuration

Part 2: Using Ansible for Managing VMware vsphere Infrastructure

managing-Vmware-vSphere-through-Ansible-devops-automation-tool-api-pyvmomi-780x405.png

Recently I took over a task to evaluate few DevOps configuration, automation and orchestration tools to configure VMware vSphere. There are many tools available in the market for DevOps automation. Personally I like and already…

Read more

20 blog posts

Blog Search

Page Views

12086053

Follow me on Blogarama