adapt for rocky
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2022-05-29 18:39:41 +02:00
parent 0c57834991
commit cc66d9fda9
6 changed files with 155 additions and 3 deletions

View File

@ -26,7 +26,7 @@
- name: launch arch base install software
pacman:
state: present
name: "{{ system_base_softwares_arch }}"
name: "{{ system_base_softwares }}"
become: true
when: ansible_facts['os_family'] == "Archlinux"
@ -41,11 +41,20 @@
- name: launch debian base install software
apt:
state: present
name: "{{ system_base_softwares_debian }}"
name: "{{ system_base_softwares }}"
update_cache: true
become: true
when: ansible_facts['os_family'] == "Debian"
- name: launch redhat base install software
dnf:
state: present
name: "{{ system_base_softwares }}"
update_cache: true
become: true
when: ansible_facts['os_family'] == "RedHat"
- name: GITHUB | Get current version of bat
shell: >
set -o pipefail
@ -75,4 +84,5 @@
name: "{{ user.name }}"
shell: /bin/zsh
state: present
when: ansible_facts['os_family'] != "RedHat"
become: true

6
tasks/depot_redhat.yml Normal file
View File

@ -0,0 +1,6 @@
- name: add repo main contrib
dnf:
name: epel-release
state: latest
update_cache: true
become: true

View File

@ -1,9 +1,17 @@
- name: gather os specific variables
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version}}.yml"
- "{{ ansible_os_family }}.yml"
tags: vars
- include_tasks: hostname.yml
- include_tasks: hosts.yml
- include_tasks: tasks.sysctl.yml
- include_tasks: dhcpcd.yml
- include_tasks: hostname.yml
when: ansible_os_family == "Archlinux"
- include_tasks: locales.yml
when: ansible_os_family == "Archlinux"
- include_tasks: time.yml
- include_tasks: usergroup.yml
- include_tasks: ssh.yml
@ -11,6 +19,8 @@
when: ansible_facts['os_family'] == "Archlinux"
- include_tasks: depot_debian.yml
when: ansible_facts['os_family'] == "Debian"
- include_tasks: depot_redhat.yml
when: ansible_os_family == "RedHat"
- include_tasks: AUR_builder.yml
when: ansible_facts['os_family'] == "Archlinux"
- include_tasks: base_software.yml

44
vars/Archlinux.yml Normal file
View File

@ -0,0 +1,44 @@
system_base_softwares:
- "zsh"
- "stow"
- "wol"
- "nmap"
- "bind"
- "rsync"
- "awesome-terminal-fonts"
- "wget"
- "bat"
- "diff-so-fancy"
- "git"
- "htop"
- "thefuck"
- "tldr"
- "ntfs-3g"
- "python-lxml"
- "tmux"
- "vim"
- "python-pip"
- "pacman-contrib"
- "yarn"
- "npm"
- "nethogs"
- "iftop"
- "zip"
- "unzip"
- "unrar"
- "git-lfs"
- "httpie"
- "lsof"
- "glances"
- "ethtool"
- "gnu-netcat"
- "netctl"
- "logrotate"
- "otf-cascadia-code"
- "neovim"
- "python-pynvim"
- "yamllint"
- "prettier"
- "fd"
- "fzf"
- "kitty-terminfo"

38
vars/Debian.yml Normal file
View File

@ -0,0 +1,38 @@
system_base_softwares:
- "zsh"
- "lsof"
- "glances"
- "stow"
- "wakeonlan"
- "nmap"
- "dnsutils"
- "rsync"
# - 'awesome-terminal-fonts'
- "wget"
# - 'bat'
# - 'diff-so-fancy'
- "git"
- "htop"
- "thefuck"
- "tldr"
- "ntfs-3g"
- "python-lxml"
- "tmux"
- "neovim"
- "python3-neovim"
- "python3-pip"
- "yarn"
- "npm"
- "nethogs"
- "iftop"
- "zip"
- "unzip"
- "unrar"
- "git-lfs"
- "httpie"
- "ethtool"
- "traceroute"
- "fonts-cascadia-code"
- "fd-find"
- "fzf"
- "xterm-kitty"

44
vars/RedHat.yml Normal file
View File

@ -0,0 +1,44 @@
system_base_softwares:
- "zsh"
- "stow"
- "wol"
- "nmap"
- "bind"
- "rsync"
#- "awesome-terminal-fonts"
- "wget"
# - "bat"
#- "diff-so-fancy"
- "git"
- "htop"
#- "thefuck"
- "tldr"
- "ntfs-3g"
- "python3-lxml"
- "tmux"
- "vim"
- "python3-pip"
#- "pacman-contrib"
#- "yarn"
- "npm"
- "nethogs"
- "iftop"
- "zip"
- "unzip"
- "unrar"
- "git-lfs"
- "httpie"
- "lsof"
- "glances"
- "ethtool"
- "netcat"
#- "netctl"
- "logrotate"
#- "otf-cascadia-code"
- "neovim"
- "python3-neovim"
- "yamllint"
#- "prettier"
#- "fd"
#- "fzf"
- "kitty-terminfo"