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:
parent
15f277057e
commit
82e6047e86
14
playbook.yml
14
playbook.yml
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user