Переместил хлам в trash, переименовал ansible-base в base-system, добавил добавление юзера и группы, а также правку sudoers, сделал возможность запуска base-system не от рута

This commit is contained in:
2021-12-14 07:54:59 +00:00
parent 9aa5bf6b94
commit 99597b4e30
28 changed files with 384 additions and 191 deletions

View File

@@ -0,0 +1,21 @@
---
- name: Install Debian packages
apt:
name: ['mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion', 'tree']
state: present
update_cache: yes
when: ansible_facts['os_family'] == "Debian"
- name: Install CentOS epel
yum:
name: 'epel-release'
update_cache: yes
state: present
when: ansible_facts['os_family'] == "RedHat"
- name: Install RedHat packages
yum:
name: ['epel-release', 'mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion']
update_cache: yes
state: present
when: ansible_facts['os_family'] == "RedHat"