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

allow to skip installation of prerequisites #108

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docs/http-challenge/s3.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Variables for s3 http-challenge

| Variable | Required | Default | Description
|-----------------------|----------|-----------|------------
| acme_s3_bucket_name | yes | | name of the s3 bucket which should be used
| acme_s3_access_key | yes | | aws access key for API user of s3 bucket
| acme_s3_secret_key | yes | | aws secret key for API user of s3 bucket
| acme_s3_config_region | no | us-west-1 | aws s3 region in which bucket can be found
| Variable | Required | Default | Description
|-------------------------------|----------|-----------|------------
| acme_s3_bucket_name | yes | | name of the s3 bucket which should be used
| acme_s3_access_key | yes | | aws access key for API user of s3 bucket
| acme_s3_secret_key | yes | | aws secret key for API user of s3 bucket
| acme_s3_config_region | no | us-west-1 | aws s3 region in which bucket can be found
| acme_s3_install_prerequisites | no | true | install python-boto3 as prerequisite for s3 challenge file upload

## Validation

Expand Down
1 change: 1 addition & 0 deletions roles/acme/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ acme_remaining_days: "30"

### provider specific config
acme_s3_config_region: eu-west-1
acme_s3_install_prerequisites: true
acme_local_validation_path: /var/www/html
acme_azure_purge_state: absent
2 changes: 2 additions & 0 deletions roles/acme/tasks/challenge/http-01/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- python-boto3
state: present
use: "{{ acme_prerequisites_packagemanager }}"
when:
- acme_s3_install_prerequisites | bool

- name: Validate challenge only if it is created or changed # noqa no-handler
when: acme_challenge is changed
Expand Down