Git Product home page Git Product logo

certbot_nginx's People

Contributors

0x6a68 avatar andrewpbrett avatar cesarlr avatar danypr92 avatar elf-pavlik avatar enricostano avatar fapdash avatar matt-yorkley avatar oyale avatar raneq avatar sauloperez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

certbot_nginx's Issues

Add documentation to create multiple certificates

With #10 we moved the creation of the certificate to its own task certificate.yml. We did this in order to be able to create multiple certificates calling that task multiple times.

We need to add some documentation covering this use case.

Briefly the steps are:

  1. Use the role as usual without passing the domain_name variable (this will not create any certificate)
  2. include_role in a separate local role and call the certificate.yml multiple times (e.g. coopdevs/coopdevs-provisioning#11)

Multiple domains per certificate

Hi coopdevs, we've encountered a need to declare multiple domains per certificate with OFN, for example for openfoodfrance.org and www.openfoodfrance.org, but potentially others as well.

It's easy to do (the command to create a certificate can take multiple domain arguments), but it means supplying a new variable or list of additional domains/subdomains and adding them into the command conditionally.

What do you think? I could submit a PR here to make the change, or we could fork this repo for ofn-install.

Release new version

A new version needs to released and published in ansible galaxy to make #2 available.

Rename proposal

I propose to rename this repo to certbot-nginx-role?

Just to keep coherence with the others Ansible role repositories:

The task includes an option with an undefined variable. The error was: 'domains' is undefined.

TASK [coopdevs.certbot_nginx : Compare domains with domains in certificate] **************************************************************************
fatal: [server-name]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'domains' is undefined. 'domains' is undefined\n\nThe error appears to be in '/home/user/.ansible/roles/coopdevs.certbot_nginx/tasks/certificate.yml': line 29, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Compare domains with domains in certificate\n ^ here\n"}

Offending task code:

- name: Compare domains with domains in certificate
  set_fact:
    certbot_force_update: "{{ old_domains | symmetric_difference(domains) | length | bool }}"
  when: certbot_force_update is not defined

Instalation problem

ansible-galaxy install coopdevs.certbot_nginx

[WARNING]: - coopdevs.certbot_nginx was NOT installed successfully: Unable to compare role versions (0.0.4, v0.2.0, 0.0.2, 0.0.3, v0.1.0, 0.0.1) to determine the most recent version due to incompatible
version formats. Please contact the role author to resolve versioning conflicts, or specify an explicit role version to install.

Python3 support

Python3 is the standard now for Ansible.

Installation of the package: python-certbot-nginx is hard-coded in:

- name: Install certbot-nginx plugin
package:
name: "python-certbot-nginx={{ certbot_nginx_version }}"
state: present

For the plugin to work with Python3, the required package is: python3-certbot-nginx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.