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 in Ansible by anonymous
• 120 points
38 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 by MD
• 77,980 points

Related Questions In Ansible

0 votes
0 answers
0 votes
1 answer
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,280 points
215 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
804 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 5 days ago in Ansible by MD
• 77,980 points
25 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 in Ansible by MD
• 77,980 points
339 views