Bring role up to spec (2.5+, Debian 9) and introduce LetsEncrypt support (#5)

* Bring role up to spec (2.5+) and introduce LetsEncrypt support
* Add Debian 9 support and fix script args chdir
* Use correct schema for travis and use command instead of script
* Make use of requirements.txt for build and fix syntax
* Got better at reading the docs now
* Minor improvements
This commit is contained in:
hyperized
2018-09-17 15:12:03 +02:00
committed by GitHub
parent 687042298e
commit 160620477e
10 changed files with 120 additions and 18 deletions

View File

@@ -14,16 +14,15 @@
src: .custombuild.j2
dest: "{{ directadmin_setup_path }}/.custombuild"
- name: check if DA is already running on host
uri:
url: http://localhost:2222
return_content: no
register: da_present
- name: check if DA is already present on host
stat:
path: "{{ directadmin_config_path }}"
register: directadmin_present
- name: toggle whether to install DA or not
set_fact:
directadmin_install: False
when: da_present.status == 200
when: directadmin_present.stat.exists == True
- block:
- name: ensure directadmin path if remote options file is used
@@ -54,6 +53,10 @@
var: setup_output.stdout_lines
when: directadmin_install
- name: ensure Letsencrypt
include: letsencrypt.yml
when: directadmin_letsencrypt
- debug:
msg: "Directadmin is already installed and running, skipping.."
when: not directadmin_install