Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. ---
  2. - name: Webservers
  3. hosts: webservers
  4.  
  5. vars:
  6. http_port: 80
  7. max_clients: 200
  8.  
  9. remote_user: vagrant
  10.  
  11. sudo: yes
  12.  
  13. roles:
  14. - web
  15.  
  16. - name: loadbalancers
  17. hosts: loadbalancers
  18.  
  19. vars:
  20. haproxy_app_name: haproxy
  21. haproxy_mode: http
  22. haproxy_enable_stats: enable
  23. haproxy_algorithm: roundrobin
  24. haproxy_backend_servers:
  25. - {name: WEB01, ip: 192.168.2.10, port: 80, paramstring: cookie A check}
  26. - {name: WEB02, ip: 192.168.2.11, port: 80, paramstring: cookie A check}
  27. haproxy_stats_users:
  28. - {username: vagrant, password: vagrant}
  29.  
  30. remote_user: vagrant
  31.  
  32. sudo: yes
  33.  
  34. roles:
  35. - lb
  36.  
  37. - name: Databases
  38. hosts: databases
  39. vars:
  40. mysql:
  41. user: root
  42. oldpassword: root
  43. newpassword: root
  44. hosts:
  45. - "{{ ansible_hostname }}"
  46. - "127.0.0.1"
  47. - "192.168.2.10"
  48. - "192.168.2.11"
  49. - "::1"
  50. - "localhost"
  51. privileges: "*.*:ALL,GRANT"
  52.  
  53. remote_user: root
  54. become: yes
  55.  
  56. # sudo: yes
  57.  
  58. roles:
  59. - db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement