Write playbook to apply condition date wise comparison

0 votes
How to write playbook to compare dates between March and September and to write conditions here
Oct 21, 2020 in Ansible by anonymous
• 120 points
928 views

1 answer to this question.

0 votes

Hi,

It depends on your use case. For example, you need to run some tasks on a particular date. For that, you need to gather the date first using the shell or command module. The output of that task you need to store in a register and then apply if-else conditions.

answered Oct 21, 2020 by MD
• 95,440 points

Related Questions In Ansible

0 votes
0 answers
0 votes
1 answer

How to write ansible playbook for storage health checking? Any references?

Why ansible in particular? You can use ...READ MORE

answered Oct 29, 2020 in Ansible by Lohith
1,469 views
0 votes
1 answer

Running to plays in one playbook

The inventory file is loaded before a ...READ MORE

answered Jun 25, 2018 in Ansible by ajs3033
• 7,300 points
1,115 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,655 views
+2 votes
1 answer
0 votes
1 answer

How to write ansible playbook to setup ubuntu workstation and install any updates on it

Hi@Shashi, Ansible has one module named ec2. This is ...READ MORE

answered Nov 19, 2020 in Ansible by MD
• 95,440 points
1,039 views
+1 vote
1 answer

How to deploy war file into the Websphere using ansible playbook

Hi@M, You can use the below-given example. - name: ...READ MORE

answered Jun 29, 2020 in Ansible by MD
• 95,440 points
2,157 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP