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.

37 lines
901 B

  1. ---
  2. # OpenSUSE ships with Python installed
  3. - name: Set the http_proxy in /etc/sysconfig/proxy
  4. lineinfile:
  5. path: /etc/sysconfig/proxy
  6. regexp: '^HTTP_PROXY='
  7. line: 'HTTP_PROXY="{{ http_proxy }}"'
  8. become: true
  9. when:
  10. - http_proxy is defined
  11. - name: Set the https_proxy in /etc/sysconfig/proxy
  12. lineinfile:
  13. path: /etc/sysconfig/proxy
  14. regexp: '^HTTPS_PROXY='
  15. line: 'HTTPS_PROXY="{{ https_proxy }}"'
  16. become: true
  17. when:
  18. - https_proxy is defined
  19. - name: Enable proxies
  20. lineinfile:
  21. path: /etc/sysconfig/proxy
  22. regexp: '^PROXY_ENABLED='
  23. line: 'PROXY_ENABLED="yes"'
  24. become: true
  25. when:
  26. - http_proxy is defined or https_proxy is defined
  27. # Without this package, the get_url module fails when trying to handle https
  28. - name: Install python-cryptography
  29. zypper:
  30. name: python-cryptography
  31. state: present
  32. update_cache: true
  33. become: true