Playbook for ansible

- настройка Репозиторев
new file:   builder.yaml
This commit is contained in:
2026-05-26 12:43:07 +03:00
parent 6995a8ab79
commit b4e4fc3983
+22
View File
@@ -0,0 +1,22 @@
---
- name: Настройка Astra Linux 1.8 для Курс 2
hosts: all
become: yes
gather_facts: yes
tasks:
- name: Настройка репозиториев
ansible.builtin.copy:
dest: /etc/apt/sources.list
content: |
deb https://dl.astralinux.ru/astra/frozen/1.8_x86-64/1.8.5/main-repository/ 1.8_x86-64 main contrib non-free non-free-firmware
deb https://dl.astralinux.ru/astra/frozen/1.8_x86-64/1.8.1/extended-repository/ 1.8_x86-64 main contrib non-free non-free-firmware
owner: root
group: root
mode: '0644'
backup: yes
- name: Обновить кэш apt
apt:
update_cache: yes
cache_valid_time: 3600