Questions By student

Playbook to run the ansible task after successful execution of before ansible task in windows

I'm executing the below YAML(ansible) file using Jenkins.

I want to execute the task2 only after the successful execution of task1, My YAML file is as below.

How do I add the dependency for this?

Requesting help on this

For example:

```

-name: task1

 win_command: "C:\Windows\Microsoft.NET\FRAMEWORK\V3.9.3013\MSBuild.exe" "E:\ApplicationFolder\App.xml" -target:Execute /p:ApplicationName="appname"

 register: executeapp1

 tags:

   - execute-app1

-name: task2

 win_command: "C:\Windows\Microsoft.NET\FRAMEWORK\V3.9.3013\MSBuild.exe" "E:\ApplicationFolder\App.xml" -target:Execute /p:ApplicationName="appname1"

 register: executeapp2

 tags:

   - execute-app2

1answer

16th May 2021


pallavir@logicmatter.com

While trying to implement Many-to-Many Relationships in SSAS, I am struggling as this is the first time and after following all the steps, I am still getting incorrect data. I followed the steps as per this document. It would be great to understand how one can navigate this issue from people who have done this before. Thanks in advance

https://www.google.com/url?q=https://www.sqlshack.com/introduction-to-many-to-many-relationships-in-ssas/&sa=D&source=hangouts&ust=1621664902475000&usg=AFQjCNEp7PCpZhzyaZ7AnbgCDw2vppzdOg

1answer

21st May 2021


What are the trends in RPA

RPA services is often as sociated with enterprise-wide operations, however it can also be used as a personal productivity tool. What are the current trends that taking the industry by storm in RPA?

1answer

3rd June 2021


Lipase Testing Market

 Rise in number of diagnostic testing, increasing prevalence
of pancreatic disorders, rise in patient pool, changing lifestyle, rise in
pancreatic cancer, increase in research for obesity and nutritional disorders
are some of the factors that drive the growth of the market. Furthermore rise
in number of diagnostic testing to also support the growth of the lipase
testing market. Lack of awareness, presence of alternative testing methods,
need for confirmatory testing and high cost of testing are some of the factors
that hinder the growth of the lipase testing market.
  

1answer

14th June 2021



How to use Splunk to monitor Ransomware attacks?

How to use Splunk to monitor Ransomware attacks?

1answer

5th July 2021


craig.franz@landisgyr.com

Hi All,
I have need to pull source files down from a non public GCP Cloud Bucket and I was wondering if there is any Ansible Modules for windows that support this I was looking into gsutil cmd that can be run from google cloud SDK Shell from a Remote Windows Host running in GCP but was wondering of there is a smarter way to get this done.

Below is my currently playbook method which works pulling the source files down from an internal webserver but the powers that be want to see if we can leverage GCP Buckets instead of below web server option

######## YAML file starts below ########" class="wysiwyg-hashtag">######## YAML file starts below ################ YAML file starts below #######" class="wysiwyg-hashtag">######## YAML file starts below ############### YAML file starts below ######" class="wysiwyg-hashtag">######## YAML file starts below ############## YAML file starts below #####" class="wysiwyg-hashtag">######## YAML file starts below ############# YAML file starts below ####" class="wysiwyg-hashtag">######## YAML file starts below ############ YAML file starts below ###" class="wysiwyg-hashtag">######## YAML file starts below ########### YAML file starts below ##" class="wysiwyg-hashtag">######## YAML file starts below ########## YAML file starts below #" class="wysiwyg-hashtag">######## YAML file starts below ########

---

nameDownload the Nagios NCPA Agent installer

 win_get_url:

 url: http://10.254.5.33/ansible_repo/nagios_agent/windows/ncpa-2.3.1.exe

 destC:\ansible_repo\ncpa-2.3.1.exe

nameInstall Nagios NCPA from the exe

 win_package:

 path'C:\ansible_repo\ncpa-2.3.1.exe'

 creates_path'C:\Program Files (x86)\Nagios\NCPA\ncpa_listener.exe'

 creates_version'2.3.1.0'

######## YAML file ends above ########" class="wysiwyg-hashtag">######## YAML file ends above ################ YAML file ends above #######" class="wysiwyg-hashtag">######## YAML file ends above ############### YAML file ends above ######" class="wysiwyg-hashtag">######## YAML file ends above ############## YAML file ends above #####" class="wysiwyg-hashtag">######## YAML file ends above ############# YAML file ends above ####" class="wysiwyg-hashtag">######## YAML file ends above ############ YAML file ends above ###" class="wysiwyg-hashtag">######## YAML file ends above ########### YAML file ends above ##" class="wysiwyg-hashtag">######## YAML file ends above ########## YAML file ends above #" class="wysiwyg-hashtag">######## YAML file ends above ######## 

1answer

11th August 2021


briansong.211@gmail.com

Hello All,

I am a newbie when it comes to Ansible, and thank you in advance for all your help!!

I am using Ansible to set up firewalld services, and I am having problem with adding source IPs. I am sandboxing with 2 VMs, and both are running on Oracle Linux 8. When I first ran the playboo, it added the source IP, but for the 2nd time, it removed the source IPs. Then the third time it adds back in.
So I guess it is acting like a toggle switch everytime I run the playbook. The snip from the YML file is below for your reference. I would appreciate if someone could point out what I have missed. Thanks.

- name: adding source IP

  firewalld:

    source: 192.168.1.115

    state: enabled

    immediate: yes

    permanent: true

1answer

27th August 2021




STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos