37 lines
743 B
YAML
37 lines
743 B
YAML
---
|
|
# tasks file for preparing_machine
|
|
|
|
- name: Обновление списка пакетов и установка ПО
|
|
apt:
|
|
update_cache: yes
|
|
upgrade: dist
|
|
autoremove: yes
|
|
autoclean: yes
|
|
|
|
- name: Установка необходимых пакетов
|
|
apt:
|
|
name:
|
|
- net-tools
|
|
- git
|
|
- zip
|
|
- unzip
|
|
- curl
|
|
- wget
|
|
- htop
|
|
- fzf
|
|
- gcc
|
|
- build-essential
|
|
- libc6-dev
|
|
- g++-13
|
|
state: present
|
|
|
|
- name: Создание пользователя
|
|
user:
|
|
name: "{{ new_user }}"
|
|
password: "{{ new_user_password | password_hash('sha512') }}"
|
|
shell: /bin/bash
|
|
create_home: yes
|
|
groups: sudo
|
|
append: yes
|
|
when: new_user is defined
|