Re: [ansible-project] I cant create a simple .txt file using ansible.

2017-12-04 Thread Muhammad Mahir
I'am using "ansible cassandra -m ping " or "ansible all -m ping " and is can easily ssh also but the moment I run the playbook it shows me this error. On Monday, December 4, 2017 at 8:33:38 PM UTC+5, Dick Visser wrote: > > Your comment "it perfectly connects" indicates you used ansible -m > pi

[ansible-project] delegate_to: localhost and gather_facts: yes playbook still holds previous hosts facts.

2017-12-04 Thread Snehal Biche
Ansible fixed the bug as misunderstood and alsogather_factsa play directive, it does not work on tasks. then whats the way to get localhost facts? 1. create role and role YML file with remote hosts defined as 2. create tasks file which actually needs to gather fact of localhost 3. run

[ansible-project] How to increament a value in file on every run

2017-12-04 Thread Sudip Dutta
Hi all, The scenario is - I have a file in which I have below content BUILD_VERSION = 4 on every run, I want to increase BUILD_VERSION counter to 1, so that it will be - BUILD_VERSION = 5 (on next run) I am trying different things but stuck. How can this be done ? -- You received this me

Re: [ansible-project] Re: How to create a big inventpry file in ansible

2017-12-04 Thread Larry Smith
Have you been able to figure this out? I would be glad to help if needed. How are you determining which are the masters vs. clients? The first two in the list become masters or some other logic? On Saturday, December 2, 2017 at 2:39:18 AM UTC-5, parwinderjit singh wrote: > > Hi Larry, > > Can yo

Re: [ansible-project] Human readable Stdout ansible (2.3.0)

2017-12-04 Thread SUMIT SAHAY
Hi area0, Thanks for your prompt reply, I will tell you what I did, I created callback_plugin directory inside this directory I put ansible.cfg file, then I created human_log.py file, now I am running my playbook, but I didn't get any output, could you please help me to run this playbook. Lo

Re: [ansible-project] Re: Wont be able to ping Windows Machines Via Linux Ansible Server

2017-12-04 Thread shilpa motghare
Thanks It works, I am able to do ping pong to my windows client but not able to install a .exe packages through ansible this is my output ansible windows -m win_ping Lenovo-PC | SUCCESS => { "changed": false, "ping": "pong" } And my windows.yml file is: ansible_user: Administrator ansib

Re: [ansible-project] using tests to match a hostname

2017-12-04 Thread Pshem Kowalczyk
The match is a regular expression match (not a wildcard match). If you want something ending in 'd' try this: search('d$') kind regards Pshem On Tue, 5 Dec 2017 at 13:08 Luke Miller wrote: > > I am trying to use tests to match a hostname, I want hostnames that end in > the letter "d", they ar

[ansible-project] using tests to match a hostname

2017-12-04 Thread Luke Miller
I am trying to use tests to match a hostname, I want hostnames that end in the letter "d", they are non-production hosts, here is what I have: - name: Register to Foreman Redhat non-Prod redhat_subscription: state: present activationkey: "Non-Prod-Redhat-7" org_id: "Default_Organiz

[ansible-project] Hide with_dict variables from playbook output

2017-12-04 Thread texas living
I have a playbook where I use a dictionary variable file and an includes_tasks play. My issue is the playbook displays the variables when it is run. I tried no_log: True and ignore_errors: True but makes no difference. I am using ansible version 2.4.1.0 *Here is the playbook tasks:* tasks:

[ansible-project] Error when running included playbook

2017-12-04 Thread Larry Bakun
Hi everyone, I'm receiving this weird error when running the second playbook (with include module and passing IP address). Here is my first playbook: --- - name: get VM list from ESXi hosts: all tasks: - name: get facts vmware_vm_facts: hostname: "{{ inventory_hostname }}"

Re: [ansible-project] I cant create a simple .txt file using ansible.

2017-12-04 Thread Dick Visser
Your comment "it perfectly connects" indicates you used ansible -m ping, but the authentication error suggests you did ICMP ping. So, which ping did you use? Thanks DIck On 4 December 2017 at 13:03, Muhammad Mahir wrote: >> Thank you so much for your reply. > > > I've got your point and have

[ansible-project] Re: Wont be able to ping Windows Machines Via Linux Ansible Server

2017-12-04 Thread Selva Kumar
I also hitting same issue. My /etc/ansible/hosts entry: [windows] 10.x.x.33 cat /etc/ansible/groups_vars/windows.yml ansible_user: Administrator ansible_password: ansible_port: 5986 ansible_connection: winrm # The following is necessary for Python 2.7.9+ when using default WinRM self-signed ce

[ansible-project] Upgrading a list of packages from local .deb files

2017-12-04 Thread Andrey Agenosov
Hello, I have the issue with upgrading our product on Debian-based systems. We have already installed packages of the version, for example, 2.0. There are several packages and some of it depend of the other. When I'm trying to **upgrade the product** from the version 2.0 to the version 2.1, **

Re: [ansible-project] I cant create a simple .txt file using ansible.

2017-12-04 Thread Muhammad Mahir
> > Thank you so much for your reply. I've got your point and have removed connection: local from my playbook. But after that a new output appears this time. [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature

[ansible-project] Re: Galaxy web site maintenance - 4 December 2017 @ 6:00 AM Eastern

2017-12-04 Thread chousekn
Maintenance completed. Galaxy 2.4.0 was successfully deployed. Thanks! On Friday, December 1, 2017 at 9:42:58 AM UTC-5, chou...@redhat.com wrote: > > We'll be doing some minor maintenance to the Galaxy web site on 4-Dec-2017 > between 6:00 AM and 7:00 AM Eastern. > > Be aware that during this

Re: [ansible-project] Human readable Stdout ansible (2.3.0)

2017-12-04 Thread area0
just set the following environment variable, no need for the human_log.py callback plugin; export ANSIBLE_STDOUT_CALLBACK=debug works fine for me; ansible 2.4.0.0 Hope this helps On Monday, December 4, 2017 at 10:08:55 PM UTC+11, SUMIT SAHAY wrote: > > Hi Rajeev, > > I have query regarding C

Re: [ansible-project] Human readable Stdout ansible (2.3.0)

2017-12-04 Thread SUMIT SAHAY
Hi Rajeev, I have query regarding Callback plugin, could you tell me how to setup this and how to run this, if you provide the steps it would be much appreciated. Looking forward for your reply... Thanks & Regards Sumit Sahay On Sunday, 5 March 2017 10:51:27 UTC+5:30, rajeev wrote: > > Sorry

Re: [ansible-project] I cant create a simple .txt file using ansible.

2017-12-04 Thread Kai Stian Olstad
On 04.12.2017 09:38, Muhammad Mahir wrote: Hello there, I just want to test my script if it creates a simple .txt file into a destination put instead it is creating that same file into the source vm that is where the ansible is installed. Here is the simple script I'm running. --- *- hosts: C

[ansible-project] I cant create a simple .txt file using ansible.

2017-12-04 Thread Muhammad Mahir
Hello there, I just want to test my script if it creates a simple .txt file into a destination put instead it is creating that same file into the source vm that is where the ansible is installed. Here is the simple script I'm running. --- *- hosts: Cassandra* * remote_user: murtaza* * conn