[ansible-project] Re: ansible-galaxy no longer working

2024-07-09 Thread Andrew Meyer
Hi I am getting this same error on RHEL 8 and RHEL 9 using the latest version of ansible on BOTH. Also does the yaml file I call need to be requirements.yml? I prefer it be called roles.yml since I'm using this to install all of my roles. It just makes sense to me for now. I have no problem

[ansible-project] Re: ansible-galaxy no longer working

2024-06-25 Thread Andrew Meyer
Also I don't have a requirements.yml. I use the roles.yml. On Monday, June 24, 2024 at 2:11:45 PM UTC-5 Andrew Meyer wrote: > ansible-galaxy just pulls down my roles. I just haven't changed it yet. > > On Monday, June 24, 2024 at 1:52:13 PM UTC-5 Todd Lewis wrote: > >> Can you show us what

[ansible-project] Re: ansible-galaxy no longer working

2024-06-24 Thread Andrew Meyer
ansible-galaxy just pulls down my roles. I just haven't changed it yet. On Monday, June 24, 2024 at 1:52:13 PM UTC-5 Todd Lewis wrote: > Can you show us what your requirements file contains? (And I'm curious why > you call it "/opt/syseng/automation/ansible1/roles.yml" rather than >

[ansible-project] Re: ansible-galaxy no longer working

2024-06-24 Thread Todd Lewis
Can you show us what your requirements file contains? (And I'm curious why you call it "/opt/syseng/automation/ansible1/roles.yml" rather than "/something/something/requirements.yml".) Was there anything interesting when you ran it with "-vvv"? On Monday, June 24, 2024 at 2:03:21 PM UTC-4

[ansible-project] Re: ansible 2.17 and fortinet.fortios compatibility

2024-05-28 Thread Azadeh Amirhosseini
Update. For those who are interested, i did uninstall ansible-core 2.17.0 and installed 2.16.7 and now it works as expected. On Wednesday, May 22, 2024 at 11:15:16 AM UTC+2 Azadeh Amirhosseini wrote: > Hi all, > > I have installed Ansible Core 2.17.0. My question is, is the Galaxy > collection

[ansible-project] Re: ansible Loop help

2024-05-08 Thread John Harmon
You mean something like this? - name: Run status check pps_check: vm_ip: "{{ item }}" url: "https://bldrapp.sys.comcast.net/api/v3/hosts/status?host-list=; register: status_check with_items: "{{ available_ips }}" async: 900 # Adjust the timeout based

[ansible-project] Re: ansible configuration

2024-02-06 Thread Sakshi Jain
also while executing the playbook from server1 , shall we execute as user1 or user2 ? and in inventory shall i mention as user1 or user2 as in playbook, it needs the privileged permission from the sudo user On Wed, 7 Feb 2024 at 10:35, Sakshi Jain wrote: > So basically two users > > User1 ,

[ansible-project] Re: ansible collection microsoft.ad.ldap inventory

2024-02-05 Thread Todd Lewis
$ ansible-inventory --export --list On Monday, February 5, 2024 at 8:55:28 AM UTC-5 Andy Magana wrote: > So I now I have a working microsoft.ad.ldap.yaml dynamic inventory script. > But my question is how do I export my findings to a person that needs a > list of linux machines based on

[ansible-project] Re: ansible collection microsoft.ad.ldap inventory

2024-02-05 Thread Andy Magana
So I now I have a working microsoft.ad.ldap.yaml dynamic inventory script. But my question is how do I export my findings to a person that needs a list of linux machines based on certain attributes ? Thanks. On Friday, February 2, 2024 at 12:45:13 PM UTC-6 Andy Magana wrote: > [image: Andy

[ansible-project] Re: ansible collection microsoft.ad.ldap inventory

2024-02-05 Thread Andy Magana
So I now I have a working microsoft.ad.ldap.yaml dynamic inventory script. But my question is how do I export my findings to a person that needs a list of linux machines based on certain attributes ? Thanks. On Friday, February 2, 2024 at 12:45:13 PM UTC-6 Andy Magana wrote: > [image: Andy

Re: [ansible-project] Re: Ansible 2.15 Warning message

2023-09-06 Thread Brian Coca
The first warning seems like a deprecation, which you should be able to check via `ansible-config dump --only-changed`. The 2nd warning seems due to a ansible-core vs selective callback plugin version mismatch. The 3rd is probably also a version incompatibility, but for the ansible.netcommon

Re: [ansible-project] Re: Ansible 2.15 Warning message

2023-09-05 Thread 'Felix Fontein' via Ansible Project
Hi, I think it would help if you would say which specific message do you mean. There are a lot of different messages in what you posted. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Re: Ansible 2.15 Warning message

2023-09-05 Thread Dhirender Yadav
Hi Team, Can someone help with this issue ? On Thu, Aug 17, 2023 at 8:31 PM Dhirender Yadav wrote: > Hi Team, > > Recently we have upgraded to ansible 2.15 and we are getting below > WARNINGS. > > *Please find the below for the ansible version and collection installed.* > > ~$ ansible-galaxy

[ansible-project] Re: ansible-galaxy errors

2023-08-31 Thread Andrew Meyer
Disregard, deleted all roles and re-downloaded them. On Wednesday, August 30, 2023 at 4:27:22 PM UTC-5 Andrew Meyer wrote: > The other day I suffered a power outage and got everything back online but > now when I run ansible-galaxy it errors out no matter what I do. Has anyone > else run into

[ansible-project] Re: Ansible Expect - delaybeforesend how to set

2023-08-24 Thread Atul Nasir
- name: Set delaybeforesend using pexpect hosts: your_target_host tasks: - name: Run the command with pexpect and set delaybeforesend shell: | python -c " import pexpect child = pexpect.spawn('your_command_here') child.delaybeforesend = 0.5 # Set the

[ansible-project] Re: ansible command to reboot host

2023-08-21 Thread Atul Nasir
ansible -i hosts linux_vms -m shell -a "/sbin/shutdown -r now" -u your_username -K --ssh-extra-args='-o StrictHostKeyChecking=no' On Monday, March 27, 2023 at 8:22:55 AM UTC-7 Tony Wong wrote: > I am using follwing command to reboot linux host > > ansible -i hosts linux_vms -a "/sbin/shutdown

[ansible-project] Re: Ansible win_lineinfile Assistance

2023-08-20 Thread Atul Nasir
- name: Update XML line with new token community.windows.win_lineinfile: path: '{{ some_path }}' regex: '()' line: '{{ line | regex_replace("()", "\\1{{ some_new_token }}\\2") }}' vars: line: '{{ lookup("file", some_path) | regex_replace("(\\r|\\n)", "") }}' On Monday, April

[ansible-project] Re: Ansible vmware vm configuration parameters

2023-08-19 Thread Atul Nasir
Setting VM Configuration Parameters During Provisioning: --- - name: Deploy VM with Guestinfo Parameter hosts: localhost gather_facts: no tasks: - name: Deploy VM community.vmware.vm_vm_drs_rule: validate_certs: no hostname: "{{ vcenter_hostname }}"

[ansible-project] Re: Ansible Playbook for enable ssl on weblogic 12c server using WLST

2023-08-19 Thread Atul Nasir
--- - name: Enable SSL on WebLogic hosts: weblogic_servers tasks: - name: Execute WLST script win_command: > C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd -i -c "connect('weblogic','P@$$w0rd','172.17.16.49:7001');

[ansible-project] Re: Ansible task execution until it completes

2023-06-22 Thread Vladimir Botka
On Thu, 22 Jun 2023 10:55:32 + Aharonu wrote: > ... > Can we get output of only MSG instead of listing all other output so that i > can see the required output? This is the list of the records *variable_data.msg.records* I can't provide you with better answer without "Minimal reproducible

[ansible-project] Re: Ansible task execution until it completes

2023-06-22 Thread Aharonu
HI Vladimir, Thank you again. I think that is what I am looking for but it is when running with verbosity ( -). Could you please go through below mentioned -vvv output where i can see required output under MSG ( highlighted in blue): Can we get output of only MSG instead of listing all

[ansible-project] Re: Ansible task execution until it completes

2023-06-21 Thread Vladimir Botka
On Wed, 21 Jun 2023 19:34:21 + Aharonu wrote: > - name: run ontap rest cli command to check volume move status > netapp.ontap.na_ontap_rest_cli: > <<: *login > hostname: "{{ inventory_hostname }}" > command:

[ansible-project] Re: Ansible task execution until it completes

2023-06-21 Thread Aharonu
Hi Vladimir, I have added* |list* and execute below task in ansible [core 2.11.12] but no luck. Not getting where is stopping. *Error:* TASK [set_fact] * fatal: [10.250.198.160]: FAILED! => {} MSG: The task includes an option with an undefined variable. The

[ansible-project] Re: Ansible task execution until it completes

2023-06-21 Thread Aharonu
Hi Vladimir, Thank you. I will check in higher version and update the status how it works. On Wed, 21 Jun 2023, 21:59 Vladimir Botka, wrote: > On Wed, 21 Jun 2023 11:08:16 + > Aharonu wrote: > > > The conditional check 'data_done' failed. The error was: Unexpected > > templating type

[ansible-project] Re: Ansible task execution until it completes

2023-06-21 Thread Vladimir Botka
On Wed, 21 Jun 2023 11:08:16 + Aharonu wrote: > The conditional check 'data_done' failed. The error was: Unexpected > templating type error occurred on ({{ variable_data| > selectattr('percent_complete', 'ne', 100) | length == 0 }}): object of type > 'generator' has no len() Add the

[ansible-project] Re: Ansible task execution until it completes

2023-06-21 Thread Aharonu
Hi Vladimir, Per suggestion, i have added the mentioned variable but still something is missing and i got below error: The conditional check 'data_done' failed. The error was: Unexpected templating type error occurred on ({{ variable_data| selectattr('percent_complete', 'ne', 100) | length == 0

[ansible-project] Re: Ansible task execution until it completes

2023-06-21 Thread Vladimir Botka
On Tue, 20 Jun 2023 22:18:22 +0530 Aharonu wrote: > I have *variable_data *which contains 3 records. I want to keep run > *debug *task > continuously every 1 minute until *percent_complete* == 100 and then > complete task execution. Given the list for testing variable_data: -

Re: [ansible-project] Re: Ansible task execution until it completes

2023-06-20 Thread Kosala Atapattu
Have you tried something like following? - name: wait for a url to work ansible.builtin.get_url: url: "https://myservice/; dest: "/tmp/" register: result retries: 10 delay: 6 until: result.rc == 0 SInce your record is a json you should be able to pull that off easily. Cheers, *Kosala* On

[ansible-project] Re: Ansible task execution until it completes

2023-06-20 Thread Aharonu
The play *(debug)* should execute every 1min and *percent_complete* will get changed every time till 100. When *percent_complete* is reached 100 for every record in the *variable_data*, the play should exit. Please help to achieve. Thank You. On Tue, 20 Jun 2023, 22:18 Aharonu, wrote: >

[ansible-project] Re: ansible 2.9 et NT AUTHORITY\SYSTEM - bad ?

2023-05-26 Thread sergey....@gmail.com
Thank you very much for your reply. I understand what you mean. When I run whoami through anisble, the launching user and the user show that it is on and SeTcbPrivilege = enable and SeDebugPrivilege=enable There is some software and I can only install it this way: 1. I log on to the windows

[ansible-project] Re: ansible 2.9 et NT AUTHORITY\SYSTEM - bad ?

2023-05-25 Thread jbor...@gmail.com
2.3 - 2.9 was a fairly rapid time when it came to become on windows. IIRC 2.8 introduced password less become functionality which added more stringent checks onto the SYSTEM token that was used in the process. One of these checks was to see if the token had the SeTcbPrivilege associated with

[ansible-project] Re: ansible 2.9 et NT AUTHORITY\SYSTEM - bad ?

2023-05-25 Thread sergey....@gmail.com
I took CentOS8 Stream and install ansible-core 2.14.2-3.el8 and ansible 7.2.0-1.el8.next All of this was based on python 3.11.2, and it didn't work at all because it returned a None variable, which could not be processed. As I found out from the Internet it is a bug in python 3.11.2 I have

[ansible-project] Re: ansible 2.9 et NT AUTHORITY\SYSTEM - bad ?

2023-05-24 Thread sergey....@gmail.com
I use 2.9 and playbook --- - name: become as SYSTEM win_whoami: become: yes become_method: runas become_user: System register: sys_whoami - debug: var=sys_whoami --- All work no problem. Add line : ansible_become_flags: logon_type=new_credentials

Re: [ansible-project] Re: Ansible + Arista + Netbox

2023-03-23 Thread Heinz Meier
I am doing this with Cisco. If you understood what you are doing, it is quite simple. Use the netbox inventory pluging. Be sure to gather the interface information (interfaces: true). Then use the arista.eos.eos_interfaces module and loop over all interfaces. (or arista.eos.eos_l2_interfaces).

[ansible-project] Re: Ansible + Arista + Netbox

2023-03-23 Thread kyle jones
Hey Ben, I feel your pain when it comes to designing automation for something. Are you use making your decision making based on the facts pulled from the switch? Care to share a playbook and a debug of the facts you want to loop through? On Wednesday, March 22, 2023 at 7:57:02 PM UTC-5 Ben

[ansible-project] Re: Ansible Powershell Usage

2023-03-14 Thread Shawn Singh
Also, I noticed this discussion: Ansible powershell module to be run on remote powershell on Linux machine. (https://groups.google.com/g/ansible-project/c/YZzYNEevzro) Where Matt suggests: That it [the module] is meant to be used with a Windows machine / over WinRM: *Matt Davis* *unread,*

Re: [ansible-project] Re: Ansible variable data to CSV file

2023-03-07 Thread Aharonu
*Thank you Todd for your time and help.* Hi All, I have tested in my environment. It is working good. i have one item to update for conditions. Could anyone please do me a favor . Thank you [ how to add one condition like vol_name != '_test' or vol_name !='Test*' ] ( this way working in Python

Re: [ansible-project] Re: Ansible variable data to CSV file

2023-03-06 Thread Todd Lewis
--- - name: Creating CSVs from subsets of data hosts: localhost gather_facts: false vars: csv: - cluster1,virtual_clu1,log_vol1,online,used - cluster1,virtual_clu1,log_vol2,offline,not_used - cluster1,virtual_clu1,log_vol3_Test,online,not_used -

[ansible-project] Re: Ansible variable data to CSV file

2023-03-06 Thread Aharonu
Thanks Walter. May I still ask a favor for CVS data structure atleast for any of one condion here so I can refer and work on remaining? Once I got flow it helps to explore more. Thanking you. The header must be: cluster_name,log_cluster,vol_name,status,work_status not working: (it has to give

[ansible-project] Re: Ansible variable data to CSV file

2023-03-06 Thread Aharonu
Hi Walter, Getting for the day! Actually I have data stored in 'csv' as mentioned below it is received from some other task and stories in 'csv' variable. I wanted to created CVS file from that data with required data structure I requested. Could you please help me with this to achieve my

[ansible-project] Re: Ansible long running task status

2023-02-14 Thread Neha Singh
Hi Team, Can someone please help with the below query. Thanks & Regards Neha Singh On Monday, February 13, 2023 at 10:21:29 AM UTC+5:30 Neha Singh wrote: > Hi Team, > > Below is the two ansible task, one is for running patch installer and > other task is to tracking the status of the

[ansible-project] Re: ansible-core 2.14 and determining if top level variables exist in source

2023-02-01 Thread flowerysong
On Wednesday, February 1, 2023 at 2:42:33 PM UTC-5 noke...@gmail.com wrote: Hi, I just opened https://github.com/ansible/ansible/issues/79874 and Matt explained that 2.14 change is working as designed and closed the issue. Matt put a link in the issue describing variable lazy eval and how

[ansible-project] Re: ansible-lint : How to prevent 'no-same-owner' for ansible.posix.synchronize ?

2023-01-12 Thread Norbert Klamann
Found it : I had to add : owner: false group: false Norbert Klamann schrieb am Mittwoch, 11. Januar 2023 um 14:36:55 UTC+1: > Hello all, > > I have the following task > > ``` > --- > - name: Copy static webfiles to document root /var/www/{{ sitename }} > # become: true >

[ansible-project] Re: ANSIBLE - Venv - Use /usr/bin/ansible

2022-12-16 Thread julien mahieu
Finally, the problem was related to security restrictions on the partition where my venv was located. It works perfectly on another mounting point. Ju Le mardi 13 décembre 2022 à 17:09:32 UTC+1, julien mahieu a écrit : > Hi experts, > > In order to manage network devices, I'm currently

[ansible-project] Re: Ansible custom module - DIY Missing pre-requisite

2022-12-06 Thread Todd Lewis
Version 2.5 is ancient in Ansible years. The top of that document says, "You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible

[ansible-project] Re: Ansible custom module - DIY Connection to remote host

2022-12-06 Thread 'Michael Ströder' via Ansible Project
On 12/5/22 23:48, phillip.from.oz wrote: This is what I'm doing: Playbook: --- - name: Connect to remote IRIS DB   hosts: localhost   tasks:     - name: using my custom module       IRIS:                     <-- New Module         name: superuser         password: secret         instance:

Re: [ansible-project] Re: Ansible Roles - Concept

2022-12-01 Thread Robert Grießner
thx samuel, looks good. if there's some time i'll have a try. br, robert samuel@gmail.com schrieb am Mo., 28. Nov. 2022, 17:57: > Hi RG, > > Here is a solution for that problem which I have used for a long time, > maybe before ansible tags were available. > > tasks/main.yml: > > - name:

[ansible-project] Re: Ansible Roles - Concept

2022-11-28 Thread samuel....@gmail.com
Hi RG, Here is a solution for that problem which I have used for a long time, maybe before ansible tags were available. tasks/main.yml: - name: include client import_tasks: client.yml when: run_nfs_client is defined - name: include server import_tasks: server.yml when: run_nfs_server

[ansible-project] Re: ansible shell module unable to 'vagrant up' on remote host via playbook

2022-10-17 Thread Oremo Ojwang
NB: The ansible controller is a multipass running ubuntu 22.04 On Sunday, October 16, 2022 at 10:57:24 PM UTC+3 Oremo Ojwang wrote: > > > I intend to launch a number of of vms on multiple host machines. So I have > a playbook that installs vagrant and virtualbox on the host machine. >

Re: [ansible-project] Re: Ansible dict date to csv file

2022-09-10 Thread Stefan Hornburg (Racke)
On 10/09/2022 18:44, Sagan wrote: IF you have your closters has dicts in your variable you can use a loop with dict2items and loop around it, as to writing it in your file you can use this module https://docs.ansible.com/ansible/latest/collections/ansible/builtin/lineinfile_module.html Using

[ansible-project] Re: Ansible dict date to csv file

2022-09-10 Thread Sagan
IF you have your closters has dicts in your variable you can use a loop with dict2items and loop around it, as to writing it in your file you can use this module https://docs.ansible.com/ansible/latest/collections/ansible/builtin/lineinfile_module.html On Saturday, September 10, 2022 at 5:47:07

[ansible-project] Re: Ansible Tower Survey

2022-09-03 Thread Christopher Bachmeyer
Walter, I'm so sorry, I thought I had replied to this post. Thanks much for your input. This particular story has been delayed but will certainly look into it. I think I also found a way to save the Surveys via Python so this "may" be what you are suggesting. BTW, do you work in

[ansible-project] Re: ansible-pull, GitHub private repository, deploy key

2022-08-31 Thread pjgo...@gmail.com
This subject seems to provoke speculation, but no working examples. On Wednesday, 28 January 2015 at 12:24:28 pm UTC+11 florin...@gmail.com wrote: > I might be asking something obvious here, but anyway: > > I've a private repo on GitHub, with an account on a read-only team there. > I would

[ansible-project] Re: Ansible vmware playbooks

2022-08-23 Thread TheReal MVP
Thank you! :) On Monday, August 1, 2022 at 8:47:20 AM UTC-4 walte...@nist.gov wrote: > This will run the tasks on the 'control node' (where you run ansible > itself): > hosts: localhost > > This will run the tasks on the hosts in the inventory. > hosts: all > > -- > Walter Rowe, Chief >

[ansible-project] Re: [ Ansible-Fortinet] Fortinet issue with ansible

2022-08-18 Thread ibrahim camara
hello, i resolve the issue . i see that ansible check " https://192.168.1.136:443/logincheck; , but in fortinet the port:443 is use for the sslvpn. So the best practice is to use new port for the management admin exemple: 4433 and configure a certificat (in system setting fortigate) and

[ansible-project] Re: Ansible Kerboros authentication

2022-08-16 Thread Nitrous
Thanks, installed the kinit command, but now getting this error: TASK [windowsupdates : Check If Windows Updates are Available] ** task

[ansible-project] Re: Ansible Kerboros authentication

2022-08-16 Thread 'Walter Rowe' via Ansible Project
Your answer is in the error message. "Kerberos auth failure when calling kinit cmd 'kinit': *The command was not found or was not executable: kinit.*" -- Walter Rowe, Chief Infrastructure Services Office of Information Systems Management National Institute of Standards and Technology United

[ansible-project] Re: Ansible Tower Survey

2022-08-01 Thread 'Walter Rowe' via Ansible Project
Look at the ansible tower API. You can query job and workflow surveys. You can even set them! -- Walter Rowe, Chief Infrastructure Services Office of Information Systems Management National Institute of Standards and Technology United States Department of Commerce On Tuesday, July 26, 2022 at

Re: [ansible-project] Re: Ansible - AUtorizarion tokens with uri module

2022-07-18 Thread Dick Visser
On Mon, 18 Jul 2022 at 19:45, Mohammed Reehan wrote: > > Any update on this Someone already asked the same thing after 4 months and got no response. So asking again after 6 years will almost certainly not get you a response either. Start a new question with your own data/logs/etc instead of

[ansible-project] Re: Ansible - AUtorizarion tokens with uri module

2022-07-18 Thread Mohammed Reehan
Any update on this On Friday, August 26, 2016 at 4:59:50 AM UTC+2 apriy...@gmail.com wrote: > Hi WHERE YOU ABLE TO SOLVE THIS ISSUE? > > > I AM ALSO GETTING THE SAME ERROR? > > > On Friday, April 15, 2016 at 5:41:15 AM UTC-7, John McCormack wrote: >> >> Hi >> I am trying to use the uri module

Re: [ansible-project] Re: Ansible hangs while gathering facts

2022-07-15 Thread Dick Visser
You forgot the verbose output On Fri, 15 Jul 2022 at 12:00, Ashok Reddy wrote: > Inventory: > > dmsdb19c ansible_python_interpreter=/usr/bin/python3 > ansible_user=cloud-user > dms.tt040dms2 ansible_python_interpreter=/usr/bin/python3 > ansible_user=cloud-user > mpcc.tt040dms2.

Re: [ansible-project] Re: Ansible hangs while gathering facts

2022-07-15 Thread Ashok Reddy
Inventory: dmsdb19c ansible_python_interpreter=/usr/bin/python3 ansible_user=cloud-user dms.tt040dms2 ansible_python_interpreter=/usr/bin/python3 ansible_user=cloud-user mpcc.tt040dms2. ansible_python_interpreter=/usr/bin/python3 ansible_user=cloud-user mssc.tt040dms2.

Re: [ansible-project] Re: Ansible hangs while gathering facts

2022-07-15 Thread Dick Visser
Without any context, inventory, playbook, verbose output, no. On Fri, 15 Jul 2022 at 10:25, Ashok Reddy wrote: > Can some one help me? > > > On Friday, July 15, 2022 at 11:48:26 AM UTC+5:30 Ashok Reddy wrote: > >> Hi Team, >> >> got the following error: >> >> PLAY [Common setup for all servers]

[ansible-project] Re: Ansible hangs while gathering facts

2022-07-15 Thread Ashok Reddy
Can some one help me? On Friday, July 15, 2022 at 11:48:26 AM UTC+5:30 Ashok Reddy wrote: > Hi Team, > > got the following error: > > PLAY [Common setup for all servers] > > > TASK [Gathering Facts] >

Re: [ansible-project] Re: Ansible Ad-Hoc command - raw module not working on Cisco IOS devices

2022-06-08 Thread Sagar Paul
Hey, Please check the op attached in the gist below https://gist.github.com/KB-perByte/09397b462462bd6db3f52bac8c097d04 Regards, Sagar Paul On Tuesday, June 7, 2022 at 7:26:17 PM UTC+5:30 abdellah...@gmail.com wrote: > I'm not sure.. I did try it, but it result with an error message >

Re: [ansible-project] Re: Ansible Ad-Hoc command - raw module not working on Cisco IOS devices

2022-06-07 Thread abdo chadid
I'm not sure.. I did try it, but it result with an error message indicating that the module should be used in a playbook not on ad-hoc command.. have you tried that yourself !? On Tue, Jun 7, 2022, 2:52 PM Sagar Paul wrote: > Hey, > > You might want to use the ios_command module for Cisco IOS

[ansible-project] Re: Ansible Ad-Hoc command - raw module not working on Cisco IOS devices

2022-06-07 Thread Sagar Paul
Hey, You might want to use the ios_command module for Cisco IOS specific commands. *ansible ios -m cisco.ios.ios_command -a "commands='show version'" -* Regards, Sagar Paul On Sunday, June 5, 2022 at 5:27:28 AM UTC+5:30 abdella...@gmail.com wrote: > trying to use Ad Hoc commands on both

[ansible-project] Re: Ansible-playbook 2.10.17 - shell module - No such file or directory

2022-06-03 Thread Ashish Patel
This issue got resolved : issue was related to *connection: local* for some reason when that was on delegate_to was being ignored [i don't know if i am saying this right...] well things working & issues resolved after commenting that out... On Friday, June 3, 2022 at 1:04:40 PM UTC-4 Ashish

[ansible-project] Re: Ansible-playbook 2.10.17 - shell module - No such file or directory

2022-06-03 Thread Ashish Patel
Update: I able to confirm the issue is in ***delegate_to*** Even though we see log is printing things getting executed on remote host, it's not... I replaced execute Mongo code with below code & i only saw local host files... *- name: "debug - validate - files in /usr/bin"* *

Re: [ansible-project] Re: Ansible 2.9 Upstream Life Cycle Announcement

2022-06-01 Thread Nico Kadel-Garcia
Unfortunately, the update to "ansible 5" or "ansible 6" is a bit fraught. It's *huge*, filled with roughly 100 modules, very few of which are of any use whatsoever to most ansible servers. Most developers will only need ansible-core, with only a very few ansible galaxy modules if needed, which is

[ansible-project] Re: Ansible 2.9 Upstream Life Cycle Announcement

2022-05-23 Thread Matt Martz
As of today, upstream Ansible 2.9 is officially end of life. Please review the original announcement in this thread for more information. On Wed, Nov 3, 2021 at 11:43 AM Matt Martz wrote: > The life cycle and support lifetime of Ansible 2.9 has been pretty unclear > since the decision to split

[ansible-project] Re: Ansible play book error ec2 setpu

2022-03-24 Thread Dick Visser
Did you use MS Word or something to edit the yaml file? The name key should be lower case. Sent from a mobile device From: prasanna kumar Sent: Thursday, March 24, 2022 11:17:23 AM To: ansible-project@googlegroups.com ; Dick Visser Subject: Ansible play book

[ansible-project] Re: Ansible run fails without any error

2022-02-22 Thread Robin Kluth
The command executes a few tar commands - is it possible, that ansible captures not only the .php exit code for deciding if it failed or not? Robin Kluth schrieb am Donnerstag, 17. Februar 2022 um 19:00:54 UTC+1: > Hi, > > I have AWX 20.0.0 set up (occurs with 19 as well). > > Ansible:

[ansible-project] Re: Ansible playbook for DNS addition for windows servers

2022-01-21 Thread Oleg Galushko
check this: https://docs.ansible.com/ansible/latest/collections/community/windows/win_dns_record_module.html четверг, 20 января 2022 г. в 09:26:20 UTC+3, aksha...@gmail.com: > Hi Guys, > Please help me for windows dns addition playbook for adding A record, PTR > record and Cname record. If

Re: [ansible-project] Re: ansible-galaxy and git verify-tag

2021-12-22 Thread 'Michael Ströder' via Ansible Project
On 12/22/21 18:07, Nico Kadel-Garcia wrote: On Wed, Dec 22, 2021 at 12:00 PM 'Michael Ströder' via Ansible Project wrote: On 12/22/21 17:33, Michael Ströder wrote: Is it possible to make ansible-galaxy invoke 'git verify-tag' with a locally configured GPG public key on tags specified as

Re: [ansible-project] Re: ansible-galaxy and git verify-tag

2021-12-22 Thread Nico Kadel-Garcia
On Wed, Dec 22, 2021 at 12:00 PM 'Michael Ströder' via Ansible Project wrote: > > On 12/22/21 17:33, Michael Ströder wrote: > > Is it possible to make ansible-galaxy invoke 'git verify-tag' with a > > locally configured GPG public key on tags specified as version: in > > requirements.yml? > >

[ansible-project] Re: ansible-galaxy and git verify-tag

2021-12-22 Thread 'Michael Ströder' via Ansible Project
On 12/22/21 17:33, Michael Ströder wrote: Is it possible to make ansible-galaxy invoke 'git verify-tag' with a locally configured GPG public key on tags specified as version: in requirements.yml? Hmm, seems there is no such thing yet: https://github.com/ansible/proposals/issues/36 How does

[ansible-project] Re: Ansible ssh-agent check

2021-12-10 Thread 'Neil Young' via Ansible Project
- name: Configure SSH agent delegate_to: localhost shell: | ssh-add ~/.ssh/id_rsa Thanks Neil Young schrieb am Freitag, 10. Dezember 2021 um 11:44:47 UTC+1: > Hi, > > I'm using the ssh-agent in order to make Ansible aware of my identity > during the setup. Unfortunately I mostly forget to run

[ansible-project] Re: Ansible and SELinux Issues

2021-12-09 Thread Dan Linder
In my environment, I found that we had to add the “remote_tmp” variable and make it unique per user. I think you’re running into the same thing if you look at the error message from that point of view: Permission denied: unix_listener: *cannot bind to path: /root*/.ansible/cp/ If it’s

[ansible-project] Re: Ansible Control Node Configuration

2021-11-11 Thread daeme...@gmail.com
We also investigating the best setup. On the moment we have a sort of call home system the remote is a linux applianceand the control node is in docker. The remote appliance makes a ssh tunnel to the main and we use the controle node trought that tunnel. On the firewall's the ip's are added to

[ansible-project] Re: Ansible 5.0.0b1 available for testing

2021-11-09 Thread David Moreau Simard
A mistake in the release announcement for Ansible 5.0.0b1 was brought to my attention: > > * ansible-core-2.12 now requires Python 3.8 or greater on the > controller (where you run ansible-playbook). Managed nodes continue to > support Python 2.7 and Python 3.6 or greater unless noted otherwise

[ansible-project] Re: Ansible playbook syntax

2021-11-04 Thread Todd Lewis
Your question is far too broad to answer here. You should work through a couple of the many introductory tutorials out there. That should give you enough understanding of how Ansible works to get started, and enable you to ask answerable questions here. On Wednesday, November 3, 2021 at

Re: [ansible-project] Re: Ansible Galaxy down?

2021-10-20 Thread Romain Pelisse
Yes, sorry, I meant to mention it, but instead I jumped back into my work! My bad. On Wed, Oct 20, 2021 at 2:48 PM John Dough wrote: > Location based possibly? > > Galaxy is working again for me now, hopefully for you too. > > On Wednesday, 20 October 2021 at 10:55:23 UTC+1 rpel...@redhat.com

Re: [ansible-project] Re: Ansible Galaxy down?

2021-10-20 Thread John Dough
Location based possibly? Galaxy is working again for me now, hopefully for you too. On Wednesday, 20 October 2021 at 10:55:23 UTC+1 rpel...@redhat.com wrote: > Strange because I really can't access the website (I did several refresh). > > Is there a twitter account or something else we can

Re: [ansible-project] Re: Ansible Galaxy down?

2021-10-20 Thread Romain Pelisse
Strange because I really can't access the website (I did several refresh). Is there a twitter account or something else we can follow update on Ansible Galaxy status? On Wed, Oct 20, 2021 at 11:36 AM John Dough wrote: > I can access the website, but ansible-builder has been failing for me all

[ansible-project] Re: Ansible Galaxy down?

2021-10-20 Thread John Dough
I can access the website, but ansible-builder has been failing for me all morning ERROR! Error when getting the collection info for community.general from default (https://galaxy.ansible.com/api/) (HTTP Code: 530, Message: Code: Unknown) STEP 9: FROM quay.io/ansible/ansible-builder:latest AS

[ansible-project] Re: Ansible performing poorly on scale setups

2021-10-04 Thread steve missoh
I dont think ansible has ever been designed to perform at scale. Chef or Puppet are better at that because they are agent based. If you already tried mitogen and ssh pipelining and even increased the forks, I suggest you take a look at the new paradigm of execution environments that comes with

[ansible-project] Re: Ansible-PlayBook to set Password Complexity in Linux 7.6

2021-08-20 Thread Roberto Paz
There are a few ansible roles available in ansible-galaxy to do PCI diagnose and hardening on RH7. Maybe you should check in https://galaxy.ansible.com/ to see if a role fits for your needs. El jueves, 19 de agosto de 2021 a la(s) 21:33:31 UTC-5, rifky...@gmail.com escribió: > Dear All, > I

[ansible-project] Re: Ansible ssh error - Make sure this host can be reached over ssh: Connection timed out during banner exchange

2021-08-17 Thread Mohtashim S
Why no updates on this issue. Can someone please check. On Monday, August 16, 2021 at 1:44:55 AM UTC+5:30 Mohtashim S wrote: > Yes, I also mentioned that the ansible command module also gets triggered > on remote host. I m just concerned about the error message as it fails the > playbook. > >

[ansible-project] Re: Ansible ssh error - Make sure this host can be reached over ssh: Connection timed out during banner exchange

2021-08-15 Thread Mohtashim S
Yes, I also mentioned that the ansible command module also gets triggered on remote host. I m just concerned about the error message as it fails the playbook. On Monday, August 16, 2021 at 12:22:48 AM UTC+5:30 zil...@gmail.com wrote: > Can you ssh to the host with the creds you're providing

[ansible-project] Re: Ansible ssh error - Make sure this host can be reached over ssh: Connection timed out during banner exchange

2021-08-15 Thread zil...@gmail.com
Can you ssh to the host with the creds you're providing Ansible? On Sunday, August 15, 2021 at 12:20:06 PM UTC-4 mohta...@gmail.com wrote: > Below is the command to run Ansible Playbook: > > ANSIBLE_SCP_IF_SSH=y ansible-playbook -v -i > /web/aes/admin/playbooks/PB_BAU/ccc_vel.hosts >

[ansible-project] Re: ansible template vars for command line invocation

2021-08-11 Thread Roberto Paz
Can you share the error message? Didn't work if you use as an "extra var" added to the command line you posted? El miércoles, 11 de agosto de 2021 a la(s) 08:58:34 UTC-5, Ed Greenberg escribió: > Hi, I have a bash command of: > > ansible beta -m template -a 'src=../templates/www.conf.j2 >

Re: [ansible-project] Re: Ansible and VMware 7.0 Compatibility

2021-08-01 Thread Abhijeet Kasurde
Yes, Ansible VMware collection uses Pyvmomi and is compatible with vmware 7.0. We have not seen any issues so far. On Fri, Jul 30, 2021 at 6:20 PM Roberto Paz wrote: > For what I understand, vmware modules uses pyvmomi underneath. pyvmomi > seems to be compatible with vmware 7.0. > >

[ansible-project] Re: Ansible and VMware 7.0 Compatibility

2021-07-30 Thread Roberto Paz
For what I understand, vmware modules uses pyvmomi underneath. pyvmomi seems to be compatible with vmware 7.0. https://github.com/vmware/pyvmomi/releases El viernes, 30 de julio de 2021 a la(s) 06:07:07 UTC-5, nelson.mon...@gmail.com escribió: > > Hi! > > We intend to upgrade VMware 6.7 to

[ansible-project] Re: Ansible playbook to check whether "retrieve the information of an email subject"

2021-07-22 Thread Tcl Salem
Hello Team, grateful for any inputs/suggestions for my rail mail query..:) On Wed, 21 Jul 2021 at 12:48, Tcl Salem wrote: > Hello Team, > I was trying to explore something on email notifications, where I am able > to send emails successfully, and also able to retrieve mail successfull >

Re: [ansible-project] Re: Ansible Docker command is not working

2021-06-28 Thread Ben Sikkens
You should also consider using the docker-compose module. https://docs.ansible.com/ansible/latest/collections/community/docker/docker_compose_module.html#ansible-collections-community-docker-docker-compose-module On Tue, Jun 29, 2021, 03:52 Roberto Paz wrote: > It seems there is an error in

[ansible-project] Re: Ansible Docker command is not working

2021-06-28 Thread Roberto Paz
It seems there is an error in *docker-compose.yml *file (Invalid top-level property "x-airflow-common"). Have you tried to run docker-compose manually on remote server? El lunes, 28 de junio de 2021 a la(s) 20:36:10 UTC-5, raja...@gmail.com escribió: > Hi, > > I am trying to run a service via

[ansible-project] Re: Ansible win_file can not create a directory on a partitioned drive?

2021-06-22 Thread zil...@gmail.com
Duh on me. Thanks! Chris On Tuesday, June 22, 2021 at 2:58:34 PM UTC-4 jbor...@gmail.com wrote: > You have a typo, it's 'state' not 'status'. The default value is 'state: > file' and due to historical behaviour 'state: file' will not create the > file. > > On Tuesday, June 22, 2021 at

[ansible-project] Re: Ansible win_file can not create a directory on a partitioned drive?

2021-06-22 Thread jbor...@gmail.com
You have a typo, it's 'state' not 'status'. The default value is 'state: file' and due to historical behaviour 'state: file' will not create the file. On Tuesday, June 22, 2021 at 11:35:04 AM UTC+10 zil...@gmail.com wrote: > Ansible 2.11.0 > > I created an I: disk partition on my Windows 2019

[ansible-project] Re: Ansible raw module ASA

2021-05-17 Thread A. J. Nemeth
I use the raw module on most of my devices if I just want to issue a single command to one device.I could run a playbook. But find this easier. I use playbooks if I need to pull multiple devices. On Wednesday, May 12, 2021 at 2:37:05 AM UTC-4 sjai...@redhat.com wrote: > Hi, > > Is

  1   2   3   4   5   6   7   8   9   10   >