get rid of deprecated code.
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
update_cache: yes
|
||||
#cache_valid_time: 3600
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS" or ansible_distribution == "Fedora"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS" or ansible_facts.distribution == "Fedora"
|
||||
tags:
|
||||
- yum-update
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
name: epel-release
|
||||
state: latest
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS"
|
||||
|
||||
|
||||
# Its more eficient to in
|
||||
@@ -28,9 +28,9 @@
|
||||
name: "{{ yum_base_install_centos_7 }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_distribution_major_version == "7"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS"
|
||||
- ansible_facts.distribution_major_version == "7"
|
||||
tags:
|
||||
- yum-base-install
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
name: "{{ yum_initial_install_centos_7 }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_distribution_major_version == "7"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS"
|
||||
- ansible_facts.distribution_major_version == "7"
|
||||
tags:
|
||||
- yum-initial-install
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
name: "{{ yum_base_install_fedora_38 }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "Fedora"
|
||||
- ansible_distribution_major_version == "38"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "Fedora"
|
||||
- ansible_facts.distribution_major_version == "38"
|
||||
tags:
|
||||
- yum-base-install
|
||||
|
||||
@@ -63,9 +63,9 @@
|
||||
name: "{{ yum_initial_install_fedora_38 }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "Fedora"
|
||||
- ansible_distribution_major_version == "38"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "Fedora"
|
||||
- ansible_facts.distribution_major_version == "38"
|
||||
tags:
|
||||
- yum-initial-install
|
||||
|
||||
@@ -75,8 +75,8 @@
|
||||
name: "{{ yum_lxc_host_pkgs_centos }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS"
|
||||
- groups['lxc_host']|string is search(inventory_hostname)
|
||||
tags:
|
||||
- yum-lxc-hosts-pkgs
|
||||
@@ -86,8 +86,8 @@
|
||||
name: "{{ yum_lxc_host_pkgs_fedora }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "Fedora"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "Fedora"
|
||||
- groups['lxc_host']|string is search(inventory_hostname)
|
||||
tags:
|
||||
- yum-lxc-hosts-pkgs
|
||||
@@ -98,8 +98,8 @@
|
||||
name: "{{ yum_postgresql_pkgs_centos }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS"
|
||||
- install_postgresql_pkgs|bool
|
||||
tags:
|
||||
- apt-postgresql-server-pkgs
|
||||
@@ -109,8 +109,8 @@
|
||||
name: "{{ yum_postgresql_pkgs_fedora }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "Fedora"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "Fedora"
|
||||
- install_postgresql_pkgs|bool
|
||||
tags:
|
||||
- apt-postgresql-server-pkgs
|
||||
@@ -121,8 +121,8 @@
|
||||
name: "{{ yum_compiler_pkgs_centos }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS"
|
||||
- install_compiler_pkgs|bool
|
||||
tags:
|
||||
- yum-compiler-pkgs
|
||||
@@ -132,8 +132,8 @@
|
||||
name: "{{ yum_compiler_pkgs_fedora }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "Fedora"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "Fedora"
|
||||
- install_compiler_pkgs|bool
|
||||
tags:
|
||||
- yum-compiler-pkgs
|
||||
@@ -143,8 +143,8 @@
|
||||
name: "{{ yum_webserver_pkgs_centos }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "CentOS"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "CentOS"
|
||||
- install_webserver_pkgs|bool
|
||||
tags:
|
||||
- yum-webserver-pkgs
|
||||
@@ -154,8 +154,8 @@
|
||||
name: "{{ yum_webserver_pkgs_fedora }}"
|
||||
state: "{{ yum_install_state }}"
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution == "Fedora"
|
||||
- ansible_facts.os_family == "RedHat"
|
||||
- ansible_facts.distribution == "Fedora"
|
||||
- install_webserver_pkgs|bool
|
||||
tags:
|
||||
- yum-webserver-pkgs
|
||||
|
||||
Reference in New Issue
Block a user