Skip to content

Commit

Permalink
allow to skip installation of prerequisites (#108)
Browse files Browse the repository at this point in the history
* allow to skip installation of prerequisites
* fix codespell check
  • Loading branch information
beechesII authored Dec 1, 2023
1 parent a1836f1 commit 4e3385c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
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

0 comments on commit 4e3385c

Please sign in to comment.