Advertisement
Guest User

Untitled

a guest
Apr 4th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. ---
  2. ---
  3. - name: lets try some long ansible task with vars in quotes
  4. hosts: localhost
  5. connection: local
  6. vars:
  7. drush_root: /tmp/drush_root
  8. site_domain: "drush_root.com"
  9. site_uuid: "some_random_UUID1234xyz"
  10. site_langcode: "English"
  11. site_db_host: "drush_db1-host1"
  12. site_db_name: "drush_db1"
  13. site_db_user: "srush_usr1"
  14. site_db_password: "my_very_hard_password"
  15. site_db_su_name: "root"
  16. site_db_su_password: "123456789asdfasdf"
  17. site_db_port: "1234"
  18. gather_facts: false
  19. tasks:
  20. - name: Spinup new site.
  21. command: >
  22. ./drush
  23. spinup-site
  24. --root="{{ drush_root }}"
  25. --site-domain="{{ site_domain }}"
  26. --site-uuid="{{ site_uuid }}"
  27. --langcode="{{ site_langcode }}"
  28. --db-host="{{ site_db_host }}"
  29. --db-port="{{ site_db_port }}"
  30. --db-name="{{ site_db_name }}"
  31. --db-user="{{ site_db_user }}"
  32. --db-pw="{{ site_db_password }}"
  33. --db-su-name="{{ site_db_su_name }}"
  34. --db-su-pw="{{ site_db_su_password }}"
  35. args:
  36. chdir: "{{drush_root}}"
  37. register: slack_message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement