diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-01-21 14:52:16 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-01-21 14:52:16 +0100 |
commit | 5490ae91cd85a65001d3c9df685b935c11e1378d (patch) | |
tree | ad6ec264d93a2456691bf0ee8109ebef729bd439 /roles/icinga2/tasks/apache.yml | |
parent | 41a475c5fb12d0bb82d596331796b8f375904c0a (diff) | |
download | ansible_collection-5490ae91cd85a65001d3c9df685b935c11e1378d.tar.gz |
WIP: Icinga2 improvements
Diffstat (limited to 'roles/icinga2/tasks/apache.yml')
-rw-r--r-- | roles/icinga2/tasks/apache.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/roles/icinga2/tasks/apache.yml b/roles/icinga2/tasks/apache.yml new file mode 100644 index 0000000..bfc6a52 --- /dev/null +++ b/roles/icinga2/tasks/apache.yml @@ -0,0 +1,44 @@ +--- +- name: Install index.html + copy: + src: index.html + dest: /var/www/html/index.html + become: yes + notify: Restart apache + +- name: Install site-config + copy: + src: 000-default.conf + dest: /etc/apache2/sites-available/000-default.conf + become: yes + notify: Restart apache + +- name: Install SSL site-config + template: + src: default-ssl.conf.j2 + dest: /etc/apache2/sites-available/default-ssl.conf + become: yes + notify: Restart apache + +- name: Enable sites + file: + state: link + path: '/etc/apache2/sites-enabled/{{ item }}' + src: '../sites-available/{{ item }}' + loop: + - 000-default.conf + - default-ssl.conf + become: yes + notify: Restart apache + +- name: Enable apache mods + file: + state: link + path: '/etc/apache2/mods-enabled/{{ item }}' + src: '../mods-available/{{ item }}' + loop: + - ssl.conf + - ssl.load + - socache_shmcb.load + become: yes + notify: Restart apache |