Many updates over time
This commit is contained in:
83
server/tasks/Debian/all-OBSOLETE.yml
Normal file
83
server/tasks/Debian/all-OBSOLETE.yml
Normal file
@@ -0,0 +1,83 @@
|
||||
---
|
||||
# ------------------------------------------------------------------------------
|
||||
# These tasks run for any Debian/Ubuntu server (physical or virtual)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Copy Debian 9 sources.list
|
||||
- name: Copying Debian 9 apt/sources.list
|
||||
copy: src=debian/9/sources.list dest=/etc/apt/sources.list mode=0644
|
||||
when: modify_apt_sources == True and ansible_os_family == "Debian" and ansible_distribution_major_version == "9"
|
||||
|
||||
# Copy Debian 10 sources.list
|
||||
- name: Copying Debian 10 apt/sources.list
|
||||
copy: src=debian/10/sources.list dest=/etc/apt/sources.list mode=0644
|
||||
when: modify_apt_sources == True and ansible_os_family == "Debian" and ansible_distribution_major_version == "10"
|
||||
|
||||
# Copy Debian 11 sources.list
|
||||
- name: Copying Debian 11 apt/sources.list
|
||||
copy: src=debian/11/sources.list dest=/etc/apt/sources.list mode=0644
|
||||
when: modify_apt_sources == True and ansible_os_family == "Debian" and ansible_distribution_major_version == "11"
|
||||
|
||||
# Copy Debian 12 sources.list
|
||||
- name: Copying Debian 12 apt/sources.list
|
||||
copy: src=debian/12/sources.list dest=/etc/apt/sources.list mode=0644
|
||||
when: modify_apt_sources == True and ansible_os_family == "Debian" and ansible_distribution_major_version == "12"
|
||||
|
||||
# Copy Debian 13 sources.list
|
||||
- name: Copying Debian 13 apt/sources.list
|
||||
copy: src=debian/13/sources.list dest=/etc/apt/sources.list mode=0644
|
||||
when: modify_apt_sources == True and ansible_os_family == "Debian" and ansible_distribution_major_version == "13"
|
||||
|
||||
# Copy Ubuntu 16.04 sources.list
|
||||
- name: Copying Ubuntu 16.04 apt/sources.list
|
||||
copy: src=ubuntu/16.04/sources.list dest=/etc/apt/sources.list mode=0644
|
||||
when: modify_apt_sources == True and ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
|
||||
|
||||
# Ignore apt translations
|
||||
- name: Ignoring apt tranlations
|
||||
copy: src=debian/99translations dest=/etc/apt/apt.conf.d/99translations mode=0644
|
||||
|
||||
# Install common apps for all Debian and Ubuntu Systems
|
||||
- name: Installing common Debian/Ubuntu applications
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- apt-transport-https # For https apt repos
|
||||
- openssh-server # SSH server
|
||||
- sudo # Sudo access for users
|
||||
- net-tools # Deprecated ifconfig
|
||||
- nmap # Port scanner
|
||||
- ethtool # LAN information for debugging
|
||||
- iperf # Network performance for debugging
|
||||
- sysstat # Performance stats
|
||||
- iotop # Data I/O top (for hard drive read/write analysis)
|
||||
- iftop # Network top to watch network usage
|
||||
- vim # Vim text editor
|
||||
- nano # Nano text editor
|
||||
- rsync # Rsync protocol
|
||||
- curl # Web downloader
|
||||
- wget # Web downloader
|
||||
- htop # Graphical top alternative
|
||||
- mlocate # Full-text search for all files
|
||||
- zip # Zip utility
|
||||
- unzip # Unzip utility
|
||||
- gzip # Gzip utility
|
||||
- git # Git source control
|
||||
- nfs-common # Connect to a NFS server
|
||||
- cifs-utils # Connect to a Samba server
|
||||
- dos2unix # Convert dos line endings to unix and visa versa
|
||||
- acl # I customize directories often with ACL
|
||||
- dnsutils # Dig command and other dns commands
|
||||
|
||||
|
||||
# Install common apps for all Debian <= 11 and Ubunt <= 22.04
|
||||
- name: Installing common Debian <=11 and Ubuntu <= 22.04 applications
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- ntp # Date sync
|
||||
when: (ansible_distribution == "Ubuntu" and ansible_distribution_version <= "22.04") or
|
||||
(ansible_distribution == "Debian" and ansible_distribution_major_version <= "11")
|
||||
|
||||
Reference in New Issue
Block a user