[ansible-project] Ansible-playbook with cisco small business switches

2019-01-27 Thread Jean berjonneau
Hello, I'm using Ansible but i ran into a problem few days ago. >From Ansible server: I am able to log on my switch using "cisco ssh@10.99.70.46" and i can copy running-config to my ansible server (repo tftp) I have SW-Switches in my hosts file. I want a playbook to : - log on my small

[ansible-project] Re: getting error while checking which java using ansible

2019-01-27 Thread ruben melvin
I am actually not supposed to add or set anything on that server as it is a production server. So setting environment is not an option for me. I just need to know the java version using ansible so that it will help me a lot in reducing the manual works of my teammates. I tried out using the

Re: [ansible-project] How do I read/ use Ansible tower credentials (machine/ network/ Vault/ Source Control)?

2019-01-27 Thread Ankit Vashistha
The question should be posted in AWX group or instead should be posted for your Red-hat support. Coming to your question, you don't need to specifically define the username and password in the playbook. When you create a template, you choose the playbook, credentials (already created ones under

[ansible-project] How do I read/ use Ansible tower credentials (machine/ network/ Vault/ Source Control)?

2019-01-27 Thread Saravanan
Hi Ansible Experts, This question is more relevant to Ansible Tower. Can someone help to read the Ansible tower credentials in Playbook? We have created machine type credential called *sampleCredential* and password for it. Now how do I use them in the playbook --- - hosts: all vars:

[ansible-project] override role variables

2019-01-27 Thread Vadim V
Hello. I don't now why but I have strange situation: - name: install and configure consul hosts: hostname roles: it doesn't work: - role: nomad vars: nomad_version: 0.8.7 nomad_datacenter: "lc" nomad_consul_address: "localhost:8500"

[ansible-project] To call Ansible legacy module from within library's custom module

2019-01-27 Thread Leo Y
I would like to use existing implementations while developing a custom module. For this matter, I want to use k8s_raw module to communicate with Kubernetes cluster instead of importing python packages and managing the whole logic. How can I call an Ansible legacy module, for example a `k8s_raw`

Re: [ansible-project] Ansible 2.7, yum and list of packages

2019-01-27 Thread Byron Schlemmer
Okay, I've found the problem. I'm running Ansible from source. I recloned the repo into a new directory and now it runs correctly. A git status shows no changes on the problem clone and a diff between the yum modules show no difference, however clearly I introduced a problem somewhere in my

Re: [ansible-project] Ansible 2.7, yum and list of packages

2019-01-27 Thread Byron Schlemmer
Jonathan, Thanks for the idea but that's not it. I even cut and paste the text from https://docs.ansible.com/ansible/latest/modules/yum_module.html#yum-module: - name: Install a list of packages yum: name: - nginx - postgresql - postgresql-server state: present Into