[ansible-project] Issue with local_action copy content

2018-11-19 Thread Vamsi Krishna
HI All, I am developing below play for patching but stuck with local action copy content module. Please let me know what I am missing here Code:- --- - hosts: "{{ host }}" become: yes become_method: sudo tasks: - name: Running prepatch info commands shell: | echo -e

Re: [ansible-project] How to execute a SQL Script ( MS SQL 2014 SP2 ) by Ansible

2018-11-19 Thread Dick Visser
There is no specific mssql query module part of ansible itself, but a 3rd party module does exist for this purpose: https://github.com/melmorabity/ansible-mssql-query If you can, report on its usability. Dick On Tue, 20 Nov 2018 at 05:36, ameya agashe wrote: > Hello Guys, > > I have copied a

[ansible-project] Guidance on provisioning 2 node GKE cluster on Google Cloud using Ansible

2018-11-19 Thread somali . batra
Hi, I need to automate the provisioning of 2 node GKE cluster using Ansible. Appreciate, if someone can direct me to a tutorial or any kind of guidance in this regard. Thank you very much! Regards, Somali -- You received this message because you are subscribed to the Google Groups

[ansible-project] How to execute a SQL Script ( MS SQL 2014 SP2 ) by Ansible

2018-11-19 Thread ameya agashe
Hello Guys, I have copied a script on MS SQL server on c:\temp\always-on.sql I'm wondering how to have it executed by Ansible, win_shell module? or is there any specialized module for MSSQL for Ansible? Kindly assist Thanks Ameya Agashe -- You received this message because you are subscribed

Re: [ansible-project] Any Tool to write ansible because to many syntax issue are getting in terminal.?

2018-11-19 Thread Jonathan Lozada De La Matta
well a lot of this tools are to do that more automated or give you more insight before you get to the point of running them. On Mon, Nov 19, 2018 at 11:04 PM Linux Tech wrote: > when ever i try to write something in ansible yml file it always show me > syntax error. > > -- > You received this

[ansible-project] Any Tool to write ansible because to many syntax issue are getting in terminal.?

2018-11-19 Thread Linux Tech
when ever i try to write something in ansible yml file it always show me syntax error. -- 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

Re: [ansible-project] {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4'"}

2018-11-19 Thread Tom K.
Kool. So it's really saying (bolded): ansible-playbook -i infra --limit mysql06 main.yml --tags "mysql" -v --check fatal: [mysql06]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4' *for

Re: [ansible-project] Re: Ansible ssh fails to connect to host via ssh. Permission denied - Raw ssh works

2018-11-19 Thread Arvind Thatikonda
Hi Fabio, I am not using the playbook for this particular task, I am creating an ansible control server and client. I am trying to connect from control server to client after generating the ssh keys. I used ssh-keygen on ubuntu server using ansible user. I am setting a passwordless connection

Re: [ansible-project] Re: Ansible ssh fails to connect to host via ssh. Permission denied - Raw ssh works

2018-11-19 Thread Fabio Gomes Sakiyama
Hi Arvind, It was pretty simple 'cause I was messing up the users. Are you running your playbook with root? Which user you set on your hosts as ansible_user? Are you using become inside your playbooks? Also, I stopped using ssh, instead I'm using openstack keypair. And try Dave's suggestion,

Re: [ansible-project] Ansible report

2018-11-19 Thread Alfredo De Luca
Cheers. Really appreciated. I ll have a look at ARA soon Thanks On Tue, Nov 20, 2018 at 12:08 AM Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > For more enterprise logging and sending to a log aggravator then AWX/Tower > https://www.ansible.com/products/tower &

Re: [ansible-project] Ansible report

2018-11-19 Thread Jonathan Lozada De La Matta
For more enterprise logging and sending to a log aggravator then AWX/Tower https://www.ansible.com/products/tower & https://github.com/ansible/awx If you just need an UI to see the ansible runs then I suggest you try Ansible Ara https://github.com/openstack/ara On Mon, Nov 19, 2018 at 6:01 PM

Re: [ansible-project] Ansible report

2018-11-19 Thread Alfredo De Luca
Hi Jonathan. Mostly logs/reports for now. Then we ll evaluate an enterprise solution. cheers On Mon, Nov 19, 2018 at 11:51 PM Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > Are you looking for more enterprise central features or just a place to > see more the output/logs/reports? >

Re: [ansible-project] Ansible report

2018-11-19 Thread Jonathan Lozada De La Matta
Are you looking for more enterprise central features or just a place to see more the output/logs/reports? On Mon, Nov 19, 2018 at 5:44 PM Alfredo De Luca wrote: > Hi all. > We run ansible in about 100 VM through Openstack and in the near future we > will implement ansible pull or run ansible

[ansible-project] Ansible report

2018-11-19 Thread Alfredo De Luca
Hi all. We run ansible in about 100 VM through Openstack and in the near future we will implement ansible pull or run ansible from a central workstation to all those nodes. I wonder if there is a sort of report (possibly on web) of each run and things changed that I can implement too. I heard

[ansible-project] Re: Ansible ssh fails to connect to host via ssh. Permission denied - Raw ssh works

2018-11-19 Thread Arvind Thatikonda
Hi Fabio, can you please clarify how you managed to solve it. I created user ansible, the public keys ID_RSA.pub are stored under /home/ansible/.ssh folders. the ssh-copy-id should copy to target server - client when I run ssh-copy-id ansible@privateip. I create same user name 'ansible' on

[ansible-project] ssh-copy-id error

2018-11-19 Thread Arvind Thatikonda
I created a ansible control server, and client server. I created 'ansible' users on both control and remote client server. I created ssh keys use ssh-keygen, I tried to copy the ssh keys ( public key) to remote client using ssh-copy-id it fails. The OS on the two servers is Ubuntu 18.04 LTS

Re: [ansible-project] ansible-pull minimal standalone version

2018-11-19 Thread Brian Coca
Most modules are a single file, the 'multiple files' are normally 'non python modules' and the .py that holds the documentation. Since Ansible only ships with python and powershell modules you would only have multiple files for .ps1 modules. -- -- Brian Coca -- You received this

Re: [ansible-project] Re: How to copy a file from localhost (Ansible Tower server) to remote host in Ansible playbook?

2018-11-19 Thread Saravanan
I have a temporary file created on Ansible Tower and able to send it via email. Additionally I would like to copy this file to remote server on some path. Can you please help me with this requirement? On Monday, 19 November 2018 16:35:53 UTC-5, Jonathan Lozada De La Matta wrote: > > do you

Re: [ansible-project] Re: How to copy a file from localhost (Ansible Tower server) to remote host in Ansible playbook?

2018-11-19 Thread Jonathan Lozada De La Matta
do you have the file in all the nodes? On Mon, Nov 19, 2018 at 4:25 PM Saravanan wrote: > I am getting source not found error while copying a file from Ansible > Tower server to remote server. Actually file is available in the local path > of Ansible Tower server. Any help is much appreciated.

[ansible-project] Re: How to copy a file from localhost (Ansible Tower server) to remote host in Ansible playbook?

2018-11-19 Thread Saravanan
I am getting source not found error while copying a file from Ansible Tower server to remote server. Actually file is available in the local path of Ansible Tower server. Any help is much appreciated. On Monday, 19 November 2018 09:15:39 UTC-5, Saravanan wrote: > > Hi Ansible Experts, > Need to

Re: [ansible-project] Installing WinRM offline

2018-11-19 Thread Kartik Jayaraman
Thank you sir. I had actually done it and was still getting the error. I then realised i had to do sudo sudo ansible web -i inventory.yml -m win_ping 10.xxx.xxx.xx | FAILED! =>SUCCESS => { "changed": false, "ping": "pong" } This is for anyone who wants to install WinRM offline. This

Re: [ansible-project] Ansible Inventory and http_proxy environment variables

2018-11-19 Thread Kai Stian Olstad
On Monday, 19 November 2018 18:41:46 CET Bruno Cochofel wrote: > I have more then one DC, one with proxy and the other with no proxy. Almost > all my servers are on the DC that has proxy. > Can I set something like (taken from ansible documentation): > > ---# file: group_vars/boston >

[ansible-project] Ansible Inventory and http_proxy environment variables

2018-11-19 Thread Bruno Cochofel
Hi, I have more then one DC, one with proxy and the other with no proxy. Almost all my servers are on the DC that has proxy. Can I set something like (taken from ansible documentation): ---# file: group_vars/boston ntp_server: ntp.bos.example.combackup: bak.bos.example.comproxy_env:

Re: [ansible-project] {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4'"}

2018-11-19 Thread Kai Stian Olstad
On Monday, 19 November 2018 07:34:17 CET Tom K. wrote: > ansible-playbook -i infra --limit mysql06 main.yml --tags "mysql" -v --check > > fatal: [mysql06]: FAILED! => {"changed": false, "msg": > "AnsibleUndefinedVariable: > 'ansible.vars.hostvars.HostVarsVars object' has no attribute >

[ansible-project] How to copy a file from localhost (Ansible Tower server) to remote host in Ansible playbook?

2018-11-19 Thread Saravanan
Hi Ansible Experts, Need to copy a file from Ansible tower server to remote server using copy module. Can you please help to achieve this using copy module or any other module in Ansible? --- - name: Copy file to remote server gather_facts: no hosts: 127.0.0.1 tasks: - name: Copy

[ansible-project] Re: Template File Transfer

2018-11-19 Thread 'J Hawkesworth' via Ansible Project
Hmm, as I say I don't know what kitchen expects, however it strikes me as unusual to have your playbook stored in the tasks folder of your role. Generally playbooks list one or more roles that should be applied to the hosts in the current play, so it seems odd to have the playbook stored in

[ansible-project] Unarchive can't handle empty archive files

2018-11-19 Thread philippe . mxm
Hello, When extracting an empty archive, the unarchive module exists with an error: *"failed: [localhost] (item=/tmp/foo/bar.zip) => {"changed": false, "item": "/tmp/foo/bar.zip", "msg": "Failed to find handler for \"/tmp/foo/bar.zip\". Make sure the required command to extract the file is

[ansible-project] How to include/import yml files based on condition

2018-11-19 Thread Yerigeri
Hi Im a newbie on Ansible. I have a scenario where Steps: I look for a version of an application. If version is present call uninstall.yml else call install.yml snippet i tried - win_shell: D:\Build\regread2.vbs XXX InstallLocation register: result - set_fact: signup_token: '{{

[ansible-project] Re: Template File Transfer

2018-11-19 Thread Ian Burrows
Thanks, my directory structure is as follows: / .kitchen.yml roles/common/ --/tasks/playbook.yml --/templates/create_motd.j2 test/ //.kitchen.yml --- driver: name: vagrant provisioner: name: ansible_playbook hosts: all require_ansible_repo: true require_chef_for_busser:

[ansible-project] Re: ERROR awx.main.utils Publish Exception: ZMQError('Operation cannot be accomplished in current state')

2018-11-19 Thread sgocloudtech
Hello, I am experiancing the same issue on Redhat 6.X and Tower version 3.0.4. There are no hints or leads when I search in Google. Did you manage to resolve the issue? How did you do it? Any Leads/Clues?? On Tuesday, 2 August 2016 15:12:39 UTC+2, Arun John Varughese wrote: > > > Hi, > I am

Re: [ansible-project] ansible-pull minimal standalone version

2018-11-19 Thread Christian Frieß
Thanks, I noticed this when I crawled through the source code over the weekend. Interesting, that it's just symlinks.. I'm looking to trim modules but all the time I find more directories where modules or configuration files for modules are stored. I found this at at least 3 places and it seems

[ansible-project] Re: Template File Transfer

2018-11-19 Thread 'J Hawkesworth' via Ansible Project
Hard to guess what's going on here without seeing your playbook and template file, but my guess would be the template (.j2) file isn't in one of the places that ansible expects to find it. If your template is in a role (best place for it) then there are some rules about where ansible will look

[ansible-project] Template File Transfer

2018-11-19 Thread Ian Burrows
Hi, I am very new to Ansible and I have a question regarding the template module. I am receiving an error running a playbook where ansible cannot find or access the j2 file. If I transfer the file manually into /tmp/kitchen/ where it says it is looking, then it runs fine. I am using Test