Can you Install Ansible 2.9 on a Test Machine and Retest on this version ?
doesnt look like i can do it from apt on ubuntu 18
I need ubuntu 19 for ansible 2.9?
``` $ sudo apt update $ sudo apt install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible $ sudo apt install ansible ```
https://docs.ansible.com/ansible/2.3/intro_installation.html
No you don’t need to have the latest Ubuntu 19
tony@ubuntu:~/ansiblework$ sudo apt-add-repository ppa:ansible/ansible
Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.
http://ansible.com/
More info: https://launchpad.net/~ansible/+archive/ubuntu/ansible
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://ppa.launchpad.net/ansible/ansible/ubuntu cosmic InRelease
Ign:3 http://archive.ubuntu.com/ubuntu cosmic InRelease
Ign:4 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
Ign:6 http://archive.ubuntu.com/ubuntu cosmic-security InRelease
Err:7 http://archive.ubuntu.com/ubuntu cosmic Release
404 Not Found [IP: 91.189.88.152 80]
Err:8 http://archive.ubuntu.com/ubuntu cosmic-updates Release
404 Not Found [IP: 91.189.88.152 80]
Err:9 http://archive.ubuntu.com/ubuntu cosmic-backports Release
404 Not Found [IP: 91.189.88.152 80]
Err:10 http://archive.ubuntu.com/ubuntu cosmic-security Release
404 Not Found [IP: 91.189.88.152 80]
Reading package lists… Done
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic-updates Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic-backports Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic-security Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
tony@ubuntu:~/ansiblework$ sudo apt-get update
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Ign:2 http://archive.ubuntu.com/ubuntu cosmic InRelease
Hit:3 http://ppa.launchpad.net/ansible/ansible/ubuntu cosmic InRelease
Ign:4 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
Ign:6 http://archive.ubuntu.com/ubuntu cosmic-security InRelease
Err:7 http://archive.ubuntu.com/ubuntu cosmic Release
404 Not Found [IP: 91.189.88.142 80]
Err:8 http://archive.ubuntu.com/ubuntu cosmic-updates Release
404 Not Found [IP: 91.189.88.142 80]
Err:9 http://archive.ubuntu.com/ubuntu cosmic-backports Release
404 Not Found [IP: 91.189.88.142 80]
Err:10 http://archive.ubuntu.com/ubuntu cosmic-security Release
404 Not Found [IP: 91.189.88.142 80]
Reading package lists… Done
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic-updates Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic-backports Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic-security Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
You are using vmware_guest_info module, which was introduced in
ansible 2.9: https://docs.ansible.com/ansible/latest/modules/vmware_guest_info_module.html
On that page it also says that the module used to be called
vmware_guest_facts prior to 2.9.
Given that you have difficulty upgrading, try to use the old module name?
You continue to get that error because you continue to mess up the indentation.
Sort that first.
https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
Still ident While Fixing The Last Ident Issue you seem to have moved everything to the Left:
Abhijeet Kasurde Just attached the Correct Way of Doing It;
I would Recommend Reading / Watching Some Ansible Videos before taken on some Projects: you may end-up doing more harm then good within your Environment
my ansible version
tony@ubuntu:~/ansiblework$ ansible --version
ansible 2.9.0
config file = /home/tony/ansiblework/ansible.cfg
configured module search path = [u’/home/tony/ansiblework/library’]
ansible python module location = /home/tony/.local/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.17 (default, Apr 15 2020, 17:20:14) [GCC 7.5.0]
You need to debug out the message
ok got it
hi to run this for multiple machines, do i need to put it in a vars file?
You need to do loop on the var
I am finding switching from powercli to ansible for vmware tough. any benefits to using ansible vs powercli?
With all due respect, this is a support mailing list, not a chat room.
I will suggest to spend some time doing research first, before firing
off a ton of questions that could have been answered by Googling for
10 seconds.