new distro
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
- name: pre-run | update apt repository (debian, ubuntu, etc.)
|
- name: pre-run | update apt repository (debian, ubuntu, etc.)
|
||||||
apt: update_cache=yes
|
apt: update_cache=yes
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
|
||||||
- name: pre-run | update pacman repository (arch)
|
- name: pre-run | update pacman repository (arch)
|
||||||
pacman: update_cache=yes
|
pacman: update_cache=yes
|
||||||
changed_when: false
|
changed_when: false
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
- name: pre-run | upgrade system (debian, ubuntu, etc.)
|
- name: pre-run | upgrade system (debian, ubuntu, etc.)
|
||||||
apt: upgrade=dist
|
apt: upgrade=dist
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
|
||||||
|
|
||||||
# run roles
|
# run roles
|
||||||
- hosts: all
|
- hosts: all
|
||||||
@@ -135,14 +135,14 @@
|
|||||||
apt:
|
apt:
|
||||||
autoclean: yes
|
autoclean: yes
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
|
||||||
|
|
||||||
- name: autoremove orphan packages (debian and ubuntu)
|
- name: autoremove orphan packages (debian and ubuntu)
|
||||||
tags: always
|
tags: always
|
||||||
apt:
|
apt:
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
purge: yes
|
purge: yes
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
|
||||||
|
|
||||||
# - name: send completion alert
|
# - name: send completion alert
|
||||||
# include_tasks: playbooks/send_completion_alert.yml
|
# include_tasks: playbooks/send_completion_alert.yml
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
tags: ansible,ansible-setup,packages
|
tags: ansible,ansible-setup,packages
|
||||||
package:
|
package:
|
||||||
name: acl
|
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
|
- name: ansible:setup | create ansible log file
|
||||||
tags: ansible,ansible-setup
|
tags: ansible,ansible-setup
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
- import_tasks: system_setup/openssh.yml
|
- import_tasks: system_setup/openssh.yml
|
||||||
- import_tasks: system_setup/scripts.yml
|
- import_tasks: system_setup/scripts.yml
|
||||||
- import_tasks: software/wazuh-agent.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
|
# Set up the ansible environment
|
||||||
|
|||||||
@@ -8,4 +8,4 @@
|
|||||||
- exim4-base
|
- exim4-base
|
||||||
- exim4-config
|
- exim4-config
|
||||||
- nano
|
- nano
|
||||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
package:
|
package:
|
||||||
name: systemd-timesyncd
|
name: systemd-timesyncd
|
||||||
state: latest
|
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)
|
- name: system setup | clock | install systemd-timesyncd (debian)
|
||||||
tags: ntp, system setup
|
tags: ntp, system setup
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
hour: "0"
|
hour: "0"
|
||||||
minute: "0"
|
minute: "0"
|
||||||
job: "apt list --upgradeable"
|
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)
|
- name: system setup | cron | Send me a list of upgradeable packages daily (Archlinux)
|
||||||
tags: cron
|
tags: cron
|
||||||
|
|||||||
1
roles/base/vars/linux mint.yml
Symbolic link
1
roles/base/vars/linux mint.yml
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
ubuntu.yml
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
file:
|
file:
|
||||||
path: "/tmp/get-docker.sh" # required. Path to the file being managed.
|
path: "/tmp/get-docker.sh" # required. Path to the file being managed.
|
||||||
state: absent
|
state: absent
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
|
||||||
|
|
||||||
- name: docker | install docker | docker-compose
|
- name: docker | install docker | docker-compose
|
||||||
package:
|
package:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- include_tasks: utilities/mail_transfer_agent.yml
|
- include_tasks: utilities/mail_transfer_agent.yml
|
||||||
- include_tasks: utilities/telegraf.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
|
- include_tasks: utilities/netdata.yml
|
||||||
when: netdata is defined and netdata == true
|
when: netdata is defined and netdata == true
|
||||||
- include_tasks: utilities/snmpd.yml
|
- include_tasks: utilities/snmpd.yml
|
||||||
|
|||||||
@@ -23,5 +23,5 @@
|
|||||||
- { regex: "^root=.*$", line: "root=rene@tantooine.myfirewall.org"}
|
- { regex: "^root=.*$", line: "root=rene@tantooine.myfirewall.org"}
|
||||||
- { regex: "^mailhub=.*", line: "mailhub=mail.universe.local"}
|
- { regex: "^mailhub=.*", line: "mailhub=mail.universe.local"}
|
||||||
- { regex: "^hostname=.*", line: "hostname={{ ansible_fqdn }}"}
|
- { 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
|
when: postfix is not defined or postfix == false
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
group: "root"
|
group: "root"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
validate: "{{ commands.visudo }} -cf %s"
|
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
|
- name: server | snmpd | create /etc/snmp
|
||||||
file:
|
file:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
- software-properties-common
|
- software-properties-common
|
||||||
- lsb-release
|
- lsb-release
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu", "Linux Mint"]
|
||||||
|
|
||||||
- name: webserver | nextcloud | prereq | get php repo key
|
- name: webserver | nextcloud | prereq | get php repo key
|
||||||
uri:
|
uri:
|
||||||
|
|||||||
Reference in New Issue
Block a user