From d906794a081d8b5a79562cf2934300c537b9f945 Mon Sep 17 00:00:00 2001 From: Andrej Copar Date: Fri, 12 Nov 2021 19:43:29 +0100 Subject: [PATCH] Update package versions for CentOS8 --- defaults/main.yml | 2 +- tasks/python.yml | 24 ++++++++++++++++++------ tasks/sys_packages.yml | 23 ++++++++++++++++++++--- 3 files changed, 39 insertions(+), 10 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 4af8417..4d308ef 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -26,6 +26,6 @@ common_user_ps1: '${BLUE}(${RED}\w${BLUE}) ${NORMAL}\h ${RED}\\$ ${NORMAL}' common_virtualbox_dist_dir: /opt/virtualbox common_aws_cli_enable: true -common_aws_cli_version: 2.0.50 +common_aws_cli_version: 2.1.24 common_additional_admin_users: [] diff --git a/tasks/python.yml b/tasks/python.yml index a286e1c..e48e958 100644 --- a/tasks/python.yml +++ b/tasks/python.yml @@ -1,18 +1,30 @@ --- -- name: Install Python utilities +#- name: Install Python utilities +# package: +# name: +# - python-virtualenv +# # NOTE: python-ipython-console package provides IPython for running in a +# # terminal and requires far less dependencies than the python-ipython +# # package which provides the full IPython. +# - python-ipython-console +# state: present + +- name: Install Python utilities for CentOS8 package: name: - - python-virtualenv + - python2-virtualenv # NOTE: python-ipython-console package provides IPython for running in a # terminal and requires far less dependencies than the python-ipython # package which provides the full IPython. - - python-ipython-console + - python3-ipython state: present + + +#- name: Install Python 3.4 +# package: name=python34 state=present +# when: common_python3_enabled -- name: Install Python 3.4 - package: name=python34 state=present - when: common_python3_enabled - name: Install Python 3.6 package: name=python36 state=present diff --git a/tasks/sys_packages.yml b/tasks/sys_packages.yml index f81e204..655c0c2 100644 --- a/tasks/sys_packages.yml +++ b/tasks/sys_packages.yml @@ -39,12 +39,29 @@ - screen - vim - wget - - ntp + #- ntp - unzip + - telnet state: present -- name: Ensure ntp is enabled and started - service: name=ntpd enabled=yes state=started +#- name: Install basic system packages +# package: +# name: +# - ntp +# state: present +# +#- when: ansible_distribution == "CentOS" + +- name: Install NTP package + package: + name: + - chrony + state: present + + when: ansible_distribution == "CentOS8" + +#- name: Ensure ntp is enabled and started +# service: name=ntpd enabled=yes state=started - name: Install firewalld package: name=firewalld state=present