Skip to content

Commit 4e3385c

Browse files
authored
allow to skip installation of prerequisites (#108)
* allow to skip installation of prerequisites * fix codespell check
1 parent a1836f1 commit 4e3385c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

docs/http-challenge/s3.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Variables for s3 http-challenge
22

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

1011
## Validation
1112

roles/acme/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ acme_remaining_days: "30"
1919

2020
### provider specific config
2121
acme_s3_config_region: eu-west-1
22+
acme_s3_install_prerequisites: true
2223
acme_local_validation_path: /var/www/html
2324
acme_azure_purge_state: absent

roles/acme/tasks/challenge/http-01/s3.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- python-boto3
77
state: present
88
use: "{{ acme_prerequisites_packagemanager }}"
9+
when:
10+
- acme_s3_install_prerequisites | bool
911

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

0 commit comments

Comments
 (0)