Skip to content

Commit ce5936d

Browse files
committed
Only support Debian
1 parent 8daee16 commit ce5936d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+188
-872
lines changed

ansible/roles/common/vars/Debian.yml ansible/roles/common/defaults/main.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
main_root_group: root
3-
ntp_service_name: ntp
2+
debian_version: buster
3+
44
main_packages_list:
55
- htop
66
- lsof
@@ -20,7 +20,3 @@ main_packages_list:
2020
- lsb-release
2121
- tree
2222
- bash-completion
23-
debian_version: buster
24-
sudo_package_name: sudo
25-
sudo_sudoers_path: etc/sudoers.d
26-
user_shell: /bin/bash

ansible/roles/common/files/etc/ntp-FreeBSD.conf

-112
This file was deleted.

ansible/roles/common/files/etc/ntp-RedHat.conf

-58
This file was deleted.

ansible/roles/common/files/etc/sudoers.d/20_xander_sudo

-1
This file was deleted.

ansible/roles/common/files/usr/local/etc/ipfw.rules

-9
This file was deleted.

ansible/roles/common/files/usr/local/etc/sudoers.d/20_xander_sudo

-1
This file was deleted.
+1-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
---
22
- name: NTP | restart ntp
33
ansible.builtin.service:
4-
name: '{{ ntp_service_name }}'
4+
name: ntp
55
state: restarted
66
listen: restart ntp
77
tags:
88
- common
99
- ntp
1010

11-
- name: Auto-updates | restart yum-cron service
12-
ansible.builtin.service:
13-
name: yum-cron
14-
state: restarted
15-
listen: restart yum-cron
16-
tags:
17-
- common
18-
- auto-updates
19-
when: ansible_facts['os_family'] == 'RedHat'
20-
2111
- name: Auto-updates | restart unattended-upgrades service
2212
ansible.builtin.service:
2313
name: unattended-upgrades
@@ -26,4 +16,3 @@
2616
tags:
2717
- common
2818
- auto-updates
29-
when: ansible_facts['os_family'] == 'Debian'

ansible/roles/common/tasks/auto-update-FreeBSD.yml

-1
This file was deleted.

ansible/roles/common/tasks/auto-update-RedHat.yml

-33
This file was deleted.

ansible/roles/common/tasks/auto-update-Debian.yml ansible/roles/common/tasks/auto-update.yml

-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
tags:
1010
- common
1111
- auto-updates
12-
when: ansible_facts['os_family'] == 'Debian'
1312

1413
- name: Auto-updates | configure /etc/apt/apt.conf.d/20auto-upgrades
1514
ansible.builtin.copy:
@@ -22,7 +21,6 @@
2221
tags:
2322
- common
2423
- auto-updates
25-
when: ansible_facts['os_family'] == 'Debian'
2624

2725
- name: Auto-updates | configure /etc/apt/apt.conf.d/50unattended-upgrades
2826
ansible.builtin.template:
@@ -35,7 +33,6 @@
3533
tags:
3634
- common
3735
- auto-updates
38-
when: ansible_facts['os_family'] == 'Debian'
3936

4037
- name: Auto-updates | start and enable unattended-upgrades service
4138
ansible.builtin.service:
@@ -45,4 +42,3 @@
4542
tags:
4643
- common
4744
- auto-updates
48-
when: ansible_facts['os_family'] == 'Debian'

ansible/roles/common/tasks/firewall-FreeBSD.yml

-1
This file was deleted.

ansible/roles/common/tasks/firewall-RedHat.yml

-43
This file was deleted.

ansible/roles/common/tasks/firewall-Debian.yml ansible/roles/common/tasks/firewall.yml

-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
tags:
88
- common
99
- firewall
10-
when: ansible_facts['os_family'] == 'Debian'
1110

1211
- name: Firewall | allow ssh inbound from clients
1312
community.general.ufw:
@@ -19,7 +18,6 @@
1918
tags:
2019
- common
2120
- firewall
22-
when: ansible_facts['os_family'] == 'Debian'
2321

2422
- name: Firewall | set outbound default
2523
community.general.ufw:
@@ -28,7 +26,6 @@
2826
tags:
2927
- common
3028
- firewall
31-
when: ansible_facts['os_family'] == 'Debian'
3229

3330
- name: Firewall | set inbound default
3431
community.general.ufw:
@@ -37,12 +34,10 @@
3734
tags:
3835
- common
3936
- firewall
40-
when: ansible_facts['os_family'] == 'Debian'
4137

4238
- name: Firewall | enable firewall
4339
community.general.ufw:
4440
state: enabled
4541
tags:
4642
- common
4743
- firewall
48-
when: ansible_facts['os_family'] == 'Debian'

0 commit comments

Comments
 (0)