[ansible-project] how to configure switch with ansible

2018-10-30 Thread Ho Yeung Lee
i use following script can not redirect debug to a file and also can not change password or add user --- - hosts: Testdevices gather_facts: false connection: local vars: date: "{{ lookup('pipe', 'date +%Y%m%d') }}" tasks: - name: change password ios_config: lines:

Re: [ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread Somali Batra
Ok, I think I found it. Thank you! On Wed, 31 Oct 2018 at 08:06, Somali Batra wrote: > Hi Jonathan, > > I could not identify a module to create VPC as well in this link > https://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html#google. > Am I missing something? > > On Tue, 30

Re: [ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread Somali Batra
Hi Jonathan, I could not identify a module to create VPC as well in this link https://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html#google. Am I missing something? On Tue, 30 Oct 2018 at 23:16, Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > Sorry, the project

Re: [EXT] [ansible-project] Fate of Ansible & Tower -- IBM Acquiring RedHat

2018-10-30 Thread Syed Jafar
My take on it pretty simple. RedHat creativity (good days) days are over. Anything IBM touches turns to rock. On Tue, Oct 30, 2018 at 2:01 PM John Harmon wrote: > Maybe this isn't the place for this, but just wondering your thoughts on > the acquisition of RedHat by IBM. They promise to keep

[ansible-project] Fate of Ansible & Tower -- IBM Acquiring RedHat

2018-10-30 Thread John Harmon
Maybe this isn't the place for this, but just wondering your thoughts on the acquisition of RedHat by IBM. They promise to keep it as its own business unit, but we have seen things like this in the past. I used to work for Novell when it acquired Suse. Personally, I don't trust IBM to do

[ansible-project] Re: ansible-sudo-issue

2018-10-30 Thread Mike Klebolt
You may want to check out these two config options: https://docs.ansible.com/ansible/latest/reference_appendices/config.html?highlight=ansible_become_exe#default-become-exe https://docs.ansible.com/ansible/latest/reference_appendices/config.html?highlight=ansible_become_exe#default-become-flags

[ansible-project] Re: Ansible-Protecting-Paswords

2018-10-30 Thread Mike Klebolt
This should do the trick. https://docs.ansible.com/ansible/latest/user_guide/playbooks_vault.html#single-encrypted-variable On Monday, October 29, 2018 at 9:40:49 AM UTC-5, Bairava Surya wrote: > > Hi All, > > --- > > - name: Weblogic Server control > hosts: "servername" > > > tasks: > -

[ansible-project] Re: Determine which network a host is on

2018-10-30 Thread Mohan L
Did you get any chance to through setup module? https://docs.ansible.com/ansible/latest/modules/setup_module.html Synopsis - This module

Re: [ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread Jonathan Lozada De La Matta
Sorry, the project and service account https://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html#google On Tue, Oct 30, 2018 at 1:43 PM Somali Batra wrote: > You mean none of this can be achieved through Ansible - project, vpc, > service account? > > On Tue, 30 Oct 2018 at

Re: [ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread Somali Batra
You mean none of this can be achieved through Ansible - project, vpc, service account? On Tue, 30 Oct 2018 at 23:10, Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > not at the moment as far as I know. > > On Tue, Oct 30, 2018 at 1:38 PM Somali Batra > wrote: > >> Thank Steve. >> >>

[ansible-project] Determine which network a host is on

2018-10-30 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
So I've got a playbook I've written where the config is different depending on the network it resides on. How can I determine this and be able to save the network as a variable? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

Re: [ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread Jonathan Lozada De La Matta
not at the moment as far as I know. On Tue, Oct 30, 2018 at 1:38 PM Somali Batra wrote: > Thank Steve. > > I understand a service account is required to provision resources on > Google cloud. So now the question is, can that be automated as well? > > Meaning is it possible to do the following

Re: [ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread Somali Batra
Thank Steve. I understand a service account is required to provision resources on Google cloud. So now the question is, can that be automated as well? Meaning is it possible to do the following through Ansible on Google Cloud 1) create a project 2) create a service account 3) create a VPC 4)

[ansible-project] Re: Ansible Sudo Issue-Solaris

2018-10-30 Thread Bairava Surya
Adding more logs to understand the issue. ESTABLISH SSH CONNECTION FOR USER: SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o U ser= -o ConnectTimeout=10 -o ControlPath=/home/vagrant/.ansible/cp/305901ab16 nj12mhf5685 '/bin/sh

Re: [ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread Stephen Granger
Looking at another Infrastructure as code example https://cloud.google.com/community/tutorials/managing-gcp-projects-with-terraform There seems to be some manual steps via the gcloud sdk to initially get a service role to then provision resources within a project. This is not a perfect response

[ansible-project] Re: ansible-sudo-issue

2018-10-30 Thread Bairava Surya
Hi Team, we need to sudo to solaris box using ansible. Below steps are done manually to login as sudo via putty SSH into solaris box by entering username and password sudo to server by entering username and password as it prompt for password. Using ansible am able to ssh to the server but

[ansible-project] Re: Joining Linux server to the Active directory Domain.

2018-10-30 Thread fahad . riaz1718
Hey Steve, Thank you so much, You're a life saver, the shell: echo "{{ domain_password }}" | realm join -U ansibleuser addomain.com seemed to work perfectly fine. once again thank you very much

[ansible-project] Re: Copy multiple files to different locations on remote server

2018-10-30 Thread anushakeshipeddy4
Thank you Mohan that worked for me -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send

Re: [ansible-project] Re: ansible vault with ad hoc command line

2018-10-30 Thread Mohan L
I have already given you example. You can see If you closely read my first replay to this thread. Ansible vault works the same way for both ansible-playbook and ansible command. What ever documented for ansible-playbook also work with ansible ad hoc if you use vault. You have spend some time

[ansible-project] Is it possible to create a project and VPC in Google cloud through Ansible?

2018-10-30 Thread somali . batra
I am new to Ansible. I have come across various articles showing how to provision resources like GCE in the Google cloud. But I want to automate the entire end to end flow and thus would start with automating the creation of Project and VPC in Google Cloud. Can someone help me identify

Re: [ansible-project] Re: Ansible playbook for creating mysql user not working

2018-10-30 Thread Arjun Ani
MySQL server is having the user root with no password. On Tue, Oct 30, 2018, 3:24 PM 'Andrew Cockerill' via Ansible Project < ansible-project@googlegroups.com> wrote: > The Ansible docs say: > > >- Both login_password and login_user are required when you are passing >credentials. If none

[ansible-project] Re: Ansible playbook for creating mysql user not working

2018-10-30 Thread 'Andrew Cockerill' via Ansible Project
The Ansible docs say: - Both login_password and login_user are required when you are passing credentials. If none are present, the module will attempt to read the credentials from ~/.my.cnf, and finally fall back to using the MySQL default login of ‘root’ with no password. On

Re: [ansible-project] Re: Custom Windows Module Failing with Ansible 2.6.4 when using become

2018-10-30 Thread Chris Hall
Thanks for the information Jordan. I'll give that a try soon, i've worked around the issue by running the playbook as the user in question but that's not the best solution in my mind. On Monday, 29 October 2018 21:14:56 UTC, Jordan Borean wrote: > > Thanks for that, the user seems to have the

[ansible-project] Re: Ansible playbook for creating mysql user not working

2018-10-30 Thread 'Andrew Cockerill' via Ansible Project
I'm not familiar with that module, but do you have all the prereqs installed? On Tuesday, 30 October 2018 09:03:45 UTC, Arjun Ani wrote: > > Andrew, > > Thank You for your reply.The issue is not with the ssh connection.The > above is only a portion of task that I am running.I was able to

[ansible-project] Re: Ansible playbook for creating mysql user not working

2018-10-30 Thread Arjun Ani
Andrew, Thank You for your reply.The issue is not with the ssh connection.The above is only a portion of task that I am running.I was able to execute other tasks successfully.Still not sure why I am not able to get the required output. On Tuesday, October 30, 2018 at 2:26:41 PM UTC+5:30,

[ansible-project] Re: Ansible playbook for creating mysql user not working

2018-10-30 Thread 'Andrew Cockerill' via Ansible Project
That looks like an issue with the ssh connection. Can you try a couple of things: 1. Verify that you can connect using ssh 2. If you can, try a simple Ansible play like 'ping' and see if that works. On Tuesday, 30 October 2018 06:09:54 UTC, Arjun Ani wrote: > > When running mysql_user module

[ansible-project] Re: Ansible Sudo Issue-Solaris

2018-10-30 Thread Bairava Surya
Hi Visser, Let me explain each and every step. With our solaris box so generally we try to login as our user by entering username and password and again we run sudo command to other user by entering password. So here sudo expects password in interactively prompt way so how we can

[ansible-project] Ansible playbook for creating mysql user not working

2018-10-30 Thread Arjun Ani
When running mysql_user module in ansible it is showing the below error. *ansible* version - 2.6 *mysql* version - 5.6 *yaml syntax* :- - name: Test | mysql mysql_user: name=test password=test host=localhost state=present error :- fatal: [94.130.87.130]: FAILED! => {

Re: [ansible-project] Re: ansible vault with ad hoc command line

2018-10-30 Thread Rajendra Rawat
I have gone through the link shared by you but there is no where is it using the vault for ad hoc command. It is using it for playbook. Request you to please share a example of ping module as I did in my previous email that would be helpful understanding it. ad-hoc command: ansible -m ping