This commit is contained in:
2023-10-28 19:57:20 +02:00
parent a932167bc6
commit 0c058e1a87
9 changed files with 803 additions and 19 deletions

View File

@ -154,4 +154,5 @@
- apt-caching-nameserver
when:
- ansible_distribution == "Debian"
- not systemd_resolved

View File

@ -37,7 +37,7 @@
- import_tasks: yum.yml
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
- ansible_distribution == "CentOS" or ansible_distribution == "Fedora"
tags: yum
@ -232,7 +232,7 @@
inventory_hostname in groups['nginx_webserver']
tags:
- redis-server
# tags supportetd inside caching-nameserver.yml
#

View File

@ -51,14 +51,14 @@
tags:
- redis-server
- name: (redis-server.yml) Install redis packages (centos system)
- name: (redis-server.yml) Install redis packages (centos / fedora system)
yum:
name: redis
state: latest
update_cache: yes
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
- ansible_distribution == "CentOS" or ansible_distribution == "Fedora"
tags:
- redis-server

View File

@ -1,6 +1,6 @@
---
- name: (yum.yml) Install system updates for centos systems
- name: (yum.yml) Install system updates for redhat (centos/fedora) systems
yum:
name: '*'
state: latest
@ -8,7 +8,7 @@
#cache_valid_time: 3600
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
- ansible_distribution == "CentOS" or ansible_distribution == "Fedora"
tags:
- yum-update
@ -17,6 +17,9 @@
yum:
name: epel-release
state: latest
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
# Its more eficient to in
@ -43,39 +46,116 @@
- yum-initial-install
- name: (yum.yml) Install lxc_host related packages
# Its more eficient to in
- name: (yum.yml) Base install Fedira packages (Fedora 38)
yum:
name: "{{ yum_lxc_host_pkgs }}"
name: "{{ yum_base_install_fedora_38 }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "Fedora"
- ansible_distribution_major_version == "38"
tags:
- yum-base-install
- name: (yum.yml) Initial install Fedora packages (Fedora 38)
yum:
name: "{{ yum_initial_install_fedora_38 }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "Fedora"
- ansible_distribution_major_version == "38"
tags:
- yum-initial-install
- name: (yum.yml) Install lxc_host related packages CentOS systems
yum:
name: "{{ yum_lxc_host_pkgs_centos }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
- groups['lxc_host']|string is search(inventory_hostname)
tags:
- yum-lxc-hosts-pkgs
- name: (yum.yml) Install lxc_host related packages Fedora systems
yum:
name: "{{ yum_lxc_host_pkgs_fedora }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "Fedora"
- groups['lxc_host']|string is search(inventory_hostname)
tags:
- yum-lxc-hosts-pkgs
- name: (yum.yml) Install postgresql server related packages
- name: (yum.yml) Install postgresql server related packages CentOS systems
yum:
name: "{{ yum_postgresql_pkgs }}"
name: "{{ yum_postgresql_pkgs_centos }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
- install_postgresql_pkgs|bool
tags:
- apt-postgresql-server-pkgs
- name: (yum.yml) Install postgresql server related packages Fedora systems
yum:
name: "{{ yum_postgresql_pkgs_fedora }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "Fedora"
- install_postgresql_pkgs|bool
tags:
- apt-postgresql-server-pkgs
- name: (yum.yml) Install compile related packages
- name: (yum.yml) Install compile related packages CentOS systems
yum:
name: "{{ yum_compiler_pkgs }}"
name: "{{ yum_compiler_pkgs_centos }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
- install_compiler_pkgs|bool
tags:
- yum-compiler-pkgs
- name: (yum.yml) Install webserver related packages
- name: (yum.yml) Install compile related packages Fedora systems
yum:
name: "{{ yum_webserver_pkgs }}"
name: "{{ yum_compiler_pkgs_fedora }}"
state: "{{ yum_install_state }}"
when: install_webserver_pkgs|bool
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "Fedora"
- install_compiler_pkgs|bool
tags:
- yum-compiler-pkgs
- name: (yum.yml) Install webserver related packages CentOS systems
yum:
name: "{{ yum_webserver_pkgs_centos }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "CentOS"
- install_webserver_pkgs|bool
tags:
- yum-webserver-pkgs
- name: (yum.yml) Install webserver related packages Fedora systems
yum:
name: "{{ yum_webserver_pkgs_fedora }}"
state: "{{ yum_install_state }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution == "Fedora"
- install_webserver_pkgs|bool
tags:
- yum-webserver-pkgs