first commit
This commit is contained in:
commit
f1c61f61fd
4
tasks/debian.yml
Normal file
4
tasks/debian.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
# empty.
|
||||
|
||||
# vim: set tabstop=2 shiftwidth=2 expandtab smarttab:
|
||||
33
tasks/main.yml
Normal file
33
tasks/main.yml
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: include debian/ubuntu specific
|
||||
include_tasks: debian.yml
|
||||
when: (ansible_distribution == "Debian" or ansible_distribution == "Ubuntu")
|
||||
|
||||
- name: include redhat specific
|
||||
include_tasks: redhat.yml
|
||||
when: ansible_distribution == "RedHat"
|
||||
|
||||
|
||||
- name: security.conf ServerTokens, debian11-99 ubuntu20-99 redhat
|
||||
lineinfile:
|
||||
dest: /etc/apache2/conf-available/security.conf
|
||||
regexp: "^ServerTokens"
|
||||
line: "ServerTokens Prod"
|
||||
when:
|
||||
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 11) or
|
||||
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int() >= 20) or
|
||||
ansible_distribution == "RedHat"
|
||||
|
||||
|
||||
- name: security.conf ServerSignature, debian11-99 ubuntu20-99 redhat
|
||||
lineinfile:
|
||||
dest: /etc/apache2/conf-available/security.conf
|
||||
regexp: "^ServerSignature"
|
||||
line: "ServerSignature Off"
|
||||
when:
|
||||
- (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 11) or
|
||||
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int() >= 20) or
|
||||
ansible_distribution == "RedHat"
|
||||
|
||||
|
||||
# vim: set tabstop=2 shiftwidth=2 expandtab smarttab:
|
||||
4
tasks/redhat.yml
Normal file
4
tasks/redhat.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
# empty.
|
||||
|
||||
# vim: set tabstop=2 shiftwidth=2 expandtab smarttab:
|
||||
Loading…
x
Reference in New Issue
Block a user