From b3eb63505c60f750571bf39c94d498ba1792698f Mon Sep 17 00:00:00 2001 From: jgoutin Date: Thu, 3 Oct 2019 12:20:36 +0200 Subject: [PATCH] 1.0.0-beta.27 --- accelpy/__init__.py | 2 +- accelpy/_ansible/common.user_override.yml | 3 +++ accelpy/_ansible/roles/common.init_system/tasks/main.yml | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/accelpy/__init__.py b/accelpy/__init__.py index 52f69fb..d1cc753 100644 --- a/accelpy/__init__.py +++ b/accelpy/__init__.py @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. """ -__version__ = '1.0.0-beta.26' +__version__ = '1.0.0-beta.27' __copyright__ = "Copyright 2019 Accelize" __licence__ = "Apache 2.0" diff --git a/accelpy/_ansible/common.user_override.yml b/accelpy/_ansible/common.user_override.yml index 55b27b2..2609d47 100644 --- a/accelpy/_ansible/common.user_override.yml +++ b/accelpy/_ansible/common.user_override.yml @@ -11,3 +11,6 @@ os_hardening: false # Enable SSH security hardening # See "https://galaxy.ansible.com/dev-sec/ssh-hardening" for more information ssh_hardening: false + +# Enable OS packages updates +os_packages_updates: true diff --git a/accelpy/_ansible/roles/common.init_system/tasks/main.yml b/accelpy/_ansible/roles/common.init_system/tasks/main.yml index 55b2830..f032b76 100644 --- a/accelpy/_ansible/roles/common.init_system/tasks/main.yml +++ b/accelpy/_ansible/roles/common.init_system/tasks/main.yml @@ -16,7 +16,7 @@ purge: true retries: 10 delay: 1 - when: ansible_os_family == 'Debian' + when: ansible_os_family == 'Debian' and os_packages_updates | bool - name: Ensure system is up to date yum: @@ -24,7 +24,7 @@ state: latest # noqa 403 retries: 10 delay: 1 - when: ansible_os_family == 'RedHat' + when: ansible_os_family == 'RedHat' and os_packages_updates | bool - name: Ensure FPGA user group exists group: