Finding XPATH for specific attribute on Ansible XML module
Stack Overflow Forums » Ansible
by Moridn
7h ago
I am having a super hard time understanding how to gather a specific attribute as a variable from a sample piece of XML. <response status="success"> <result> <interface name="ethernet1-1" id="258" allocated="40" total="150"> <entry name="10.10.10.1"> <ip>10.10.10.1</ip> <mac>aa:aa:bb:bb:cc:cc</mac> </entry> <entry name="10.10.10.2"> <ip>10.10.10.2</ip> <mac>11:11:22 ..read more
Visit website
Using ansible how to get the datacenter value from a json output which is stored in an variable
Stack Overflow Forums » Ansible
by gerrald
7h ago
changed: "false" clusters: ADC_CORE4: hosts: - name: "b125.abc.com" folder: "/ADC_3C/host/ADC_CORE4" enable_ha: "true" ha_failover_level: "2" resource_summary: cpuCapacityMHz: "2183328" cpuUsedMHz: "71374" moid: "test" datacenter: "ADC_AI" from this yaml output i need to get the datacenter value in a variable.but ADC_CORE4 value is not stable it changes on every output i get when the cluster changes. i like to get the datacenter value from this output and trying to use it in deployment of vm ..read more
Visit website
Ansible - install yum packages with preconfigured sudoers privileges
Stack Overflow Forums » Ansible
by Miklós
13h ago
The Ansible connects to my servers using a non-root user. The goal is for this non-root user to be able to install yum packages. For this, it needs sudo privileges, so I've configured the sudoers file to allow the use of yum without a password for that user. test_user ALL=(ALL) NOPASSWD: /usr/bin/yum When I log in to one of the target servers with the specified user, the installation works without any issues. [test-user@TESTHOST01~]$ sudo yum update Updating Subscription Management repositories. Microsoft Tools for RedHat 8 ..read more
Visit website
Could not load file or assembly ‘GridRuntimeDOM_managed.dll ‘ or one of its dependencies . The specified module could not be found
Stack Overflow Forums » Ansible
by FadeaAM
13h ago
i am uploading this in hopes that someone can actually give me an answer/solution . So I am using ansible to deploy virtual machines and to run several tasks on each virtual machine , and one of the tasks is to download certain file using its installer , the issue that I’m having is simple , when I try to run the ansible playbook to download the chosen files on my virtual machine I am getting the following error : “ could not load file or assembly ‘ gridRuntimeDOM_managed.dll’ or one of its dependencies . The specified module could not be found. But surprisingly, when I run the exact same comm ..read more
Visit website
How do I automate the configuration management of infrastructure resources provisioned using Terraform using Puppet
Stack Overflow Forums » Ansible
by Vaishnavi Karanjkar
19h ago
The more detailed problem statement is given as follows: Create a mechanism to automatically trigger Puppet configuration management after Terraform provisioning.  This can be achieved using one of the following methods: Use Terraform provisioners to trigger Puppet runs on provisioned instances. Utilize a configuration management tool like Ansible or Shell scripts within Terraform to execute Puppet runs remotely on provisioned instances. Im trying to understand exactly what ive to do here. How do i configure the puppet master and client for this? How do i use Ansible here? Im completely new ..read more
Visit website
Ansible rollback on multiple hosts when one of the roles fail. How to pass variables between different plays?
Stack Overflow Forums » Ansible
by Sriram Krishnan
19h ago
I need to run a set of roles on multiple servers defined by "all". I won't know the name of the serves as these are derived from dynamic inventory of Ansible tower. If any of the tasks in these roles fail, I would need to do a rollback on all the hosts on which the plays have been executed - successful or not. For example, if there is host1, host2 and host3, I execute my roles on these hosts. Host1 all roles pass. Host2 one task fails and the host is marked "failed". Host 3 also executes failed. I would ideally not want the play to proceed to execute the roles on Host 3, as Host 2 has failed ..read more
Visit website
Anisble rollback on multiple hosts when one of the roles fail. How to pass variables between different plays?
Stack Overflow Forums » Ansible
by Sriram Krishnan
21h ago
I need to run a set of roles on multiple servers defined by "all". I won't know the name of the serves as these are derived from dynamic inventory of Ansible tower. If any of the tasks in these roles fail, I would need to do a rollback on all the hosts on which the plays have been executed - successful or not. For example, if there is host1, host2 and host3, I execute my roles on these hosts. Host1 all roles pass. Host2 one task fails and the host is marrked fail. Host 3 also executes failed. I would ideally not want the play to proceed to execute the roles on Host 3, as Host 2 has failed. I ..read more
Visit website
An unknown error occurred: URL can't contain control characters
Stack Overflow Forums » Ansible
by Ritika
3d ago
I am trying to download tomcat using anisble playbook but it is give me this error " An unknown error occurred: URL can't contain control characters. '/apache/tomcat/tomcat-10/v10.0.4/bin/apache-tomcat- 10.0.4.tar.gz' (found at least ' ')"} Please help how I can resolve the issue. name: Install Apache Tomcat10 using ansible hosts: localhost become: true vars: url: "https://mirrors.estointernet.in/apache/tomcat/tomcat-10/v10.0.4/bin/apache-tomcat- 10.0.4.tar.gz" tasks: name: Update the System Packages apt: name: Create a Tomcat User user: name: tomcat name: Create a Tomcat Group group ..read more
Visit website
Ansible and open SSH port in computers
Stack Overflow Forums » Ansible
by heisenberg_
3d ago
I am playing with Ansible and there are many connection types like SSH, as you might know SSH is "secure" but will require to Open ssh ports in all computers what is actually a hassle when it comes to company policies, let's suppose the following scenario: One central ansible running in cloud. 2.000 computers from 10 different clients that will require to have the ssh port open over internet in order to get accessed by this ansible. Did i get this correct? In a nutshell: What is the correct setup in order to make this situation more secure? Shall i setup the central ansible in client side? a ..read more
Visit website
Problem parsing XML output using community XML module in Ansible
Stack Overflow Forums » Ansible
by Moridn
3d ago
I have a string of output from a query I have ran against a firewall. When I try to parse the string using the community XML module, I am getting an output of: fatal: [hostname]: FAILED! => {"changed": false, "msg": "Error while parsing document: xml_string (Start tag expected, '<' not found, line 1, column 1 (<string>, line 1))"} From: - name: Gather allocated number of addresses for LAN interface... community.general.xml: xmlstring: ethernet1-1_output.content xpath: "/x:response/x:result/x:interface[@name='allocated']" register: allocated_ethern ..read more
Visit website

Follow Stack Overflow Forums » Ansible on FeedSpot

Continue with Google
Continue with Apple
OR