You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.7 KiB

  1. ---
  2. - hosts: localhost
  3. connection: local
  4. gather_facts: False
  5. vars:
  6. NC_TOKEN: "{{ lookup('env', 'NC_TOKEN') }}"
  7. AWS_USERNAME: "{{ lookup('env', 'AWS_USERNAME') }}"
  8. POC_AWS_USERNAME: "{{ lookup('env', 'POC_AWS_USERNAME') }}"
  9. PROFILES:
  10. - profile: test
  11. password: "{{ lookup('nextcloud_passwords', 'aws test' , host='home.osuv.de', user='m', api_token=NC_TOKEN) }}"
  12. user: "{{ AWS_USERNAME }}"
  13. - profile: prod
  14. password: "{{ lookup('nextcloud_passwords', 'aws prod' , host='home.osuv.de', user='m', api_token=NC_TOKEN) }}"
  15. user: "{{ AWS_USERNAME }}"
  16. - profile: connectdev
  17. password: "{{ lookup('nextcloud_passwords', 'aws connect test' , host='home.osuv.de', user='m', api_token=NC_TOKEN) }}"
  18. user: "{{ AWS_USERNAME }}"
  19. - profile: connectprod
  20. password: "{{ lookup('nextcloud_passwords', 'aws connect prod' , host='home.osuv.de', user='m', api_token=NC_TOKEN) }}"
  21. user: "{{ AWS_USERNAME }}"
  22. - profile: connectpoc
  23. password: "{{ lookup('nextcloud_passwords', 'aws connect poc' , host='home.osuv.de', user='m', api_token=NC_TOKEN) }}"
  24. user: "{{ POC_AWS_USERNAME }}"
  25. - profile: datalake_test
  26. password: "{{ lookup('nextcloud_passwords', 'aws datalake test' , host='home.osuv.de', user='m', api_token=NC_TOKEN) }}"
  27. user: "{{ AWS_USERNAME }}"
  28. - profile: datalake_prod
  29. password: "{{ lookup('nextcloud_passwords', 'aws connect prod' , host='home.osuv.de', user='m', api_token=NC_TOKEN) }}"
  30. user: "{{ AWS_USERNAME }}"
  31. - profile: pl
  32. tasks:
  33. - include: profile_iteration.yml
  34. with_items: "{{ PROFILES }}"
  35. - include: password_iteration.yml
  36. with_items: "{{ PROFILES }}"