ansible-role-lets-encrypt-route-53 icon indicating copy to clipboard operation
ansible-role-lets-encrypt-route-53 copied to clipboard

Add support for macports

Open mprahl opened this issue 4 years ago • 3 comments

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.

mprahl avatar Jun 18 '20 13:06 mprahl

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 avatar Nov 07 '23 12:11 ctipper

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 avatar Nov 07 '23 12:11 ctipper

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

ctipper avatar Dec 05 '23 10:12 ctipper