Merge branch 'basic'
This commit is contained in:
commit
e018728143
4 changed files with 58 additions and 33 deletions
33
httpd.yml
33
httpd.yml
|
@ -1,33 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: tau
|
|
||||||
become: true
|
|
||||||
|
|
||||||
vars:
|
|
||||||
- server_admin: "admin@netz39.de"
|
|
||||||
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Update and clean package cache
|
|
||||||
apt:
|
|
||||||
update_cache: true
|
|
||||||
cache_valid_time: 3600
|
|
||||||
autoclean: true
|
|
||||||
|
|
||||||
- name: Ensure Apache2 and modules are installed and up to date
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- apache2
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Ensure mod_rewrite is enabled
|
|
||||||
apache2_module:
|
|
||||||
name: rewrite
|
|
||||||
state: present
|
|
||||||
|
|
||||||
|
|
||||||
- name: Setup proxy site testredmine.netz39.de
|
|
||||||
include_role:
|
|
||||||
name: setup-http-site-proxy
|
|
||||||
vars:
|
|
||||||
site_name: testredmine.netz39.de
|
|
||||||
proxy_port: 9004
|
|
35
main.yml
Normal file
35
main.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
- hosts: tau
|
||||||
|
become: true
|
||||||
|
|
||||||
|
vars:
|
||||||
|
- server_admin: "admin@netz39.de"
|
||||||
|
- ag_timezone: Europe/Berlin
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: ansible.timezone
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Update and clean package cache
|
||||||
|
apt:
|
||||||
|
update_cache: true
|
||||||
|
cache_valid_time: 3600
|
||||||
|
autoclean: true
|
||||||
|
|
||||||
|
- name: Ensure unattended-upgrades is installed and up to date
|
||||||
|
apt:
|
||||||
|
name: unattended-upgrades
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Setup unattended-upgrades
|
||||||
|
include_role:
|
||||||
|
name: ansible-role-unattended-upgrades
|
||||||
|
vars:
|
||||||
|
unattended_origins_patterns:
|
||||||
|
- 'origin=Debian,archive=buster-security'
|
||||||
|
- 'o=Debian,a=buster-updates'
|
||||||
|
unattended_package_blacklist: [cowsay]
|
||||||
|
unattended_mail: 'root'
|
||||||
|
|
||||||
|
- name: Setup httpd
|
||||||
|
include_tasks: tasks/httpd.yml
|
4
requirements.yml
Normal file
4
requirements.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- src: git+https://github.com/jnv/ansible-role-unattended-upgrades.git
|
||||||
|
version: v1.9.0
|
||||||
|
- src: git+https://github.com/adriagalin/ansible.timezone.git
|
||||||
|
version: 3.0.0
|
19
tasks/httpd.yml
Normal file
19
tasks/httpd.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
- name: Ensure Apache2 and modules are installed and up to date
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- apache2
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Ensure mod_rewrite is enabled
|
||||||
|
apache2_module:
|
||||||
|
name: rewrite
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: Setup proxy site testredmine.netz39.de
|
||||||
|
include_role:
|
||||||
|
name: setup-http-site-proxy
|
||||||
|
vars:
|
||||||
|
site_name: testredmine.netz39.de
|
||||||
|
proxy_port: 9004
|
Loading…
Reference in a new issue