Skip to content

Commit

Permalink
Create conditionals.yml
Browse files Browse the repository at this point in the history
Conditionals
  • Loading branch information
Ankam Ravi Kumar authored Oct 30, 2019
1 parent c91a07e commit 48700d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions conditionals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Start and Stop services
hosts: servers
tasks:
- service: name=postgresql state=started
when: ansible_host == "node5.techarkit.local"

- service: name=sshd state=started
when: ansible_host == "node2.techarkit.local"
...

0 comments on commit 48700d3

Please sign in to comment.