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

@@ -5,7 +5,7 @@
update_cache: yes
state: present
with_items:
- "{{ directadmin_rhel_packages_generic }}"
- "{{ directadmin_rhel_generic_packages }}"
- name: install everywhere but on CentOS7
yum:
@@ -14,7 +14,9 @@
state: present
with_items:
- "{{ directadmin_rhel_packages }}"
when: ansible_distribution not 'CentOS' and ansible_distribution_version|version_compare('ne', 7)
when:
- ansible_distribution not 'CentOS'
- ansible_distribution_version is version(7, 'ne')
- name: install CentOS 7 specific requirements
yum:
@@ -23,4 +25,6 @@
state: present
with_items:
- "{{ directadmin_centos7_packages }}"
when: ansible_distribution == 'CentOS' and ansible_distribution_version|version_compare('=', 7)
when:
- ansible_distribution is 'CentOS'
- ansible_distribution_version is version(7, '=')