new distro

This commit is contained in:
2024-11-29 22:15:25 +01:00
parent ee0f2a22a6
commit a43af5abcc
12 changed files with 15 additions and 14 deletions

View File

@@ -16,7 +16,7 @@
tags: ansible,ansible-setup,packages
package:
name: acl
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
- name: ansible:setup | create ansible log file
tags: ansible,ansible-setup

View File

@@ -35,7 +35,7 @@
- import_tasks: system_setup/openssh.yml
- import_tasks: system_setup/scripts.yml
- import_tasks: software/wazuh-agent.yml
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint", "Archlinux"]
# Set up the ansible environment

View File

@@ -8,4 +8,4 @@
- exim4-base
- exim4-config
- nano
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]

View File

@@ -3,7 +3,7 @@
package:
name: systemd-timesyncd
state: latest
when: ansible_distribution in ["Pop!_OS", "Ubuntu"]
when: ansible_distribution in ["Pop!_OS", "Ubuntu", "Linux Mint"]
- name: system setup | clock | install systemd-timesyncd (debian)
tags: ntp, system setup

View File

@@ -49,7 +49,7 @@
hour: "0"
minute: "0"
job: "apt list --upgradeable"
when: ansible_distribution in ["Debian", "Ubuntu"]
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
- name: system setup | cron | Send me a list of upgradeable packages daily (Archlinux)
tags: cron

View File

@@ -0,0 +1 @@
ubuntu.yml

View File

@@ -14,7 +14,7 @@
file:
path: "/tmp/get-docker.sh" # required. Path to the file being managed.
state: absent
when: ansible_distribution in ["Debian", "Ubuntu"]
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
- name: docker | install docker | docker-compose
package:

View File

@@ -9,7 +9,7 @@
- block:
- include_tasks: utilities/mail_transfer_agent.yml
- include_tasks: utilities/telegraf.yml
when: ansible_distribution in ["Debian", "Ubuntu"]
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
- include_tasks: utilities/netdata.yml
when: netdata is defined and netdata == true
- include_tasks: utilities/snmpd.yml

View File

@@ -23,5 +23,5 @@
- { regex: "^root=.*$", line: "root=rene@tantooine.myfirewall.org"}
- { regex: "^mailhub=.*", line: "mailhub=mail.universe.local"}
- { regex: "^hostname=.*", line: "hostname={{ ansible_fqdn }}"}
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
when: postfix is not defined or postfix == false

View File

@@ -13,7 +13,7 @@
group: "root"
mode: "0660"
validate: "{{ commands.visudo }} -cf %s"
when: ansible_distribution in ["Debian", "Ubuntu"]
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
- name: server | snmpd | create /etc/snmp
file:

View File

@@ -7,7 +7,7 @@
- software-properties-common
- lsb-release
- ca-certificates
when: ansible_distribution in ["Debian", "Ubuntu"]
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
- name: webserver | nextcloud | prereq | get php repo key
uri: