Comment out the apt update and upgrade steps in playbook.yml to prevent unnecessary package updates during execution, streamlining the playbook's operation.

This commit is contained in:
vvzvlad 2025-01-20 10:25:43 +03:00
parent 15f277057e
commit 82e6047e86

View File

@ -94,13 +94,13 @@
line: "127.0.1.1 {{ serverid }}" line: "127.0.1.1 {{ serverid }}"
state: present state: present
- name: Update and upgrade apt #- name: Update and upgrade apt
ansible.builtin.apt: # ansible.builtin.apt:
update_cache: true # update_cache: true
upgrade: dist # upgrade: dist
force_apt_get: true # force_apt_get: true
register: apt_update_result # register: apt_update_result
until: apt_update_result is success # until: apt_update_result is success
- name: Install necessary packages - name: Install necessary packages
ansible.builtin.apt: ansible.builtin.apt: