Directory structures and names changed to be follow the order of creation->provisioning->maintainance
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
---
|
||||
- name: Installing basic utils for comfort work (apt-based system)
|
||||
when: (ansible_facts['distribution'] == "Debian") or
|
||||
(ansible_facts['distribution'] == "Ubuntu")
|
||||
apt:
|
||||
name:
|
||||
- vim
|
||||
- ranger
|
||||
- zsh
|
||||
- rsync
|
||||
- git
|
||||
- curl
|
||||
- kitty
|
||||
- unattended-upgrades
|
||||
update-cache: yes # Run apt update before installation
|
||||
become: yes
|
||||
remote_user: ansible
|
||||
|
||||
|
||||
# The same commands for Alpine
|
||||
- name: Update Alpine packages
|
||||
when: (ansible_facts['distribution'] == "Alpine")
|
||||
command: /sbin/apk update
|
||||
remote_user: ansible
|
||||
|
||||
- name: Install the packages on Alpine
|
||||
when: (ansible_facts['distribution'] == "Alpine")
|
||||
command: /sbin/apk add vim ranger zsh rsync git curl kitty
|
||||
remote_user: ansible
|
||||
Reference in New Issue
Block a user