Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for macports #29

Open
mprahl opened this issue Jun 18, 2020 · 3 comments
Open

Add support for macports #29

mprahl opened this issue Jun 18, 2020 · 3 comments

Comments

@mprahl
Copy link
Owner

mprahl commented Jun 18, 2020

In PR #26, MacOS support was added with homebrew. It'd be nice to also add support for macports as an alternative that can be enabled with a role variable.

@ctipper
Copy link

ctipper commented Nov 7, 2023

Feel free to ignore me but IMHO homebrew action should be removed. I happen to be using macports, but having experimented with homebrew the task seems to be redundant, you need python3 to run the role, and it is trivial to add openssl11 manually.

@ctipper
Copy link

ctipper commented Nov 7, 2023

Also a small modification but in virtualenv.yml I suggest the following to aid setting up the role:

- name: use the created virtualenv
  set_fact:
    ansible_python_interpreter: "{{ ler53_account_key_dir }}/ansible-lets-encrypt-virtualenv/bin/python"
  when: not ansible_check_mode
  tags:
  - install

@ctipper
Copy link

ctipper commented Dec 5, 2023

Final note I couldn't get virtualenv to execute without adding virtualenv_command, I'm using python 3

- name: install pyOpenSSL and boto in a virtualenv (Red Hat/ MacOS)
  pip:
    name: "{{ ler53_item.name }}"
    state: "{{ ler53_item.state | default(omit) }}"
    version: "{{ ler53_item.version | default(omit) }}"
    virtualenv: "{{ ler53_account_key_dir }}/ansible-lets-encrypt-virtualenv"
    # This is required for libselinux-python
    virtualenv_site_packages: yes
    virtualenv_command: /opt/local/bin/python -m venv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants