Guest User

Untitled

a guest
Feb 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. LD_CLASS="app"
  2. LD_LOC="dfw"
  3. LD_ENV="prod"
  4.  
  5. -name: user1
  6. uid: 60001
  7. gid: 60001
  8. class: app
  9. location: any
  10. env: dev
  11. -name: user2
  12. uid: 60002
  13. gid: 60002
  14. class: app
  15. location: dfw
  16. env: prod
  17.  
  18. - user:
  19. name: '{{ item.name }}'
  20. state: '{ (If $LD_LOC matches location variable, or is set to any) & ($LD_ENV matches env variable, or is set to any) & ($LD_CLASS matches class variable, or is set to any) } present{% else %}absent{% endif %}'
  21. uid: '{{ item.uid }}'
  22. with_items: users
Add Comment
Please, Sign In to add comment