From bf53efbe7e94ca347f112232acaef366cb97bdf7 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 1 Jun 2023 19:06:16 +0200 Subject: [PATCH] role apache2only pour s-webcom --- roles/apache2only/handlers/main.yml | 5 +++++ roles/apache2only/tasks/main.yml | 10 ++++++++++ roles/dns-master/files/db.gsb.lan | 3 ++- roles/dns-master/files/db.gsb.lan.rev | 3 ++- s-webcom.yml | 2 +- 5 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 roles/apache2only/handlers/main.yml create mode 100644 roles/apache2only/tasks/main.yml diff --git a/roles/apache2only/handlers/main.yml b/roles/apache2only/handlers/main.yml new file mode 100644 index 0000000..670471f --- /dev/null +++ b/roles/apache2only/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: restart apache2 + service: + name: apache2 + state: restarted diff --git a/roles/apache2only/tasks/main.yml b/roles/apache2only/tasks/main.yml new file mode 100644 index 0000000..e8954af --- /dev/null +++ b/roles/apache2only/tasks/main.yml @@ -0,0 +1,10 @@ +--- +- name: apt update + apt: + update_cache: yes + cache_valid_time: 3600 + +- name: Install apache2 + apt: + pkg: + - apache2 \ No newline at end of file diff --git a/roles/dns-master/files/db.gsb.lan b/roles/dns-master/files/db.gsb.lan index fc6ccc4..ef72db3 100644 --- a/roles/dns-master/files/db.gsb.lan +++ b/roles/dns-master/files/db.gsb.lan @@ -5,7 +5,7 @@ ; $TTL 604800 @ IN SOA s-infra.gsb.lan. root.s-infra.gsb.lan. ( - 2023051000 ; Serial + 2023060100 ; Serial 7200 ; Refresh 86400 ; Retry 8419200 ; Expire @@ -26,6 +26,7 @@ s-docker IN A 172.16.0.7 s-mon IN A 172.16.0.8 s-itil IN A 172.16.0.9 s-elk IN A 172.16.0.11 +s-webcom IN A 172.16.0.12 s-gestsup IN A 172.16.0.17 r-int IN A 172.16.0.254 r-int-lnk IN A 192.168.200.254 diff --git a/roles/dns-master/files/db.gsb.lan.rev b/roles/dns-master/files/db.gsb.lan.rev index 5085c2a..4e85c55 100644 --- a/roles/dns-master/files/db.gsb.lan.rev +++ b/roles/dns-master/files/db.gsb.lan.rev @@ -5,7 +5,7 @@ ; $TTL 604800 @ IN SOA s-infra.gsb.lan. root.s-infra.gsb.lan. ( - 2023040501 ; Serial + 2023060100 ; Serial 7200 ; Refresh 86400 ; Retry 8419200 ; Expire @@ -26,5 +26,6 @@ $TTL 604800 100.10 IN PTR s-lb 100.10 IN PTR s-lb.gsb.lan 11.0 IN PTR s-elk.gsb.lan. +12.0 IN PTR s-webcom.gsb.lan. 17.0 IN PTR s-gestsup.lan 254.0 IN PTR r-int.gsb.lan. \ No newline at end of file diff --git a/s-webcom.yml b/s-webcom.yml index 700e71b..c42e866 100644 --- a/s-webcom.yml +++ b/s-webcom.yml @@ -7,5 +7,5 @@ - ssh-cli - syslog-cli - snmp-agent - - apache2 + - apache2only - post