Move task Change repos in install_package.yml and united Install default and Install wireguard tasks in Install packages

This commit is contained in:
2026-08-30 00:42:50 +03:00
parent 5bceda5da8
commit af652dd905
3 changed files with 12 additions and 14 deletions

View File

@@ -1,14 +1,17 @@
---
- name: "Install default packages"
ansible.builtin.apt:
name: "{{ default_packages }}"
state: present
become: true
register: deps_installed
- name: "Install wireguard"
- name: "Change repos"
ansible.builtin.template:
src: mirror-yandex.ru.j2
dest: /etc/apt/sources.list
owner: root
group: root
mode: '0744'
- name: "Install packages"
ansible.builtin.apt:
name: "{{ wireguard_packages }}"
name: "{{ default_packages + wireguard_packages }}"
state: present
update_cache: true
become: true
register: deps_installed