Merge pull request #3 from galexrt/packages
allow specifying dependencies packages
This commit is contained in:
commit
c8a90f6c57
|
@ -52,6 +52,10 @@ webroot, nginx or Apache but nothing is set in stone.
|
||||||
# needs to already exist, this role will not create it.
|
# needs to already exist, this role will not create it.
|
||||||
acme_sh_become_user: "root"
|
acme_sh_become_user: "root"
|
||||||
|
|
||||||
|
# acme.sh package dependencies. The default values are for Debian / Ubuntu.
|
||||||
|
# For CentOS and Fedora you can replace "cron" with "crond".
|
||||||
|
acme_sh_dependencies: ["cron", "git", "wget"]
|
||||||
|
|
||||||
# The acme.sh repo to clone.
|
# The acme.sh repo to clone.
|
||||||
acme_sh_git_url: "https://github.com/Neilpang/acme.sh"
|
acme_sh_git_url: "https://github.com/Neilpang/acme.sh"
|
||||||
|
|
||||||
|
@ -275,9 +279,6 @@ acme_sh_domains:
|
||||||
# extra_issue_renew_hook: ""
|
# extra_issue_renew_hook: ""
|
||||||
# # Optionally remove and disable the certificate.
|
# # Optionally remove and disable the certificate.
|
||||||
# remove: True
|
# remove: True
|
||||||
|
|
||||||
# How long should the apt-cache last in seconds?
|
|
||||||
acme_sh_apt_cache_time: 86400
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example usage
|
## Example usage
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
acme_sh_become_user: "root"
|
acme_sh_become_user: "root"
|
||||||
|
|
||||||
|
acme_sh_dependencies: ["cron", "git", "wget"]
|
||||||
|
|
||||||
acme_sh_git_url: "https://github.com/Neilpang/acme.sh"
|
acme_sh_git_url: "https://github.com/Neilpang/acme.sh"
|
||||||
acme_sh_git_version: "master"
|
acme_sh_git_version: "master"
|
||||||
acme_sh_git_update: False
|
acme_sh_git_update: False
|
||||||
|
@ -42,5 +44,3 @@ acme_sh_default_issue_renew_hook: ""
|
||||||
acme_sh_default_remove: False
|
acme_sh_default_remove: False
|
||||||
|
|
||||||
acme_sh_domains: []
|
acme_sh_domains: []
|
||||||
|
|
||||||
acme_sh_apt_cache_time: 86400
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
apt:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
update_cache: True
|
state: "present"
|
||||||
cache_valid_time: "{{ acme_sh_apt_cache_time }}"
|
loop: "{{ acme_sh_dependencies }}"
|
||||||
loop: ["cron", "git", "wget"]
|
|
||||||
when: not acme_sh_uninstall
|
when: not acme_sh_uninstall
|
||||||
|
|
||||||
- name: Create git clone path
|
- name: Create git clone path
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
name: "{{ acme_sh_become_user }}"
|
name: "{{ acme_sh_become_user }}"
|
||||||
shell: "/bin/bash"
|
shell: "/bin/bash"
|
||||||
|
|
||||||
|
- name: Run the equivalent of "apt-get update"
|
||||||
|
apt:
|
||||||
|
update_cache: true
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Ensure acme.sh was cloned
|
- name: Ensure acme.sh was cloned
|
||||||
command: test -d /usr/local/src/acme.sh
|
command: test -d /usr/local/src/acme.sh
|
||||||
|
|
Loading…
Reference in New Issue