More changes for pattos. Move zypper and put facts on top of files.

This commit is contained in:
Hyperling 2021-07-11 08:27:00 -05:00
parent 3876e76a72
commit 15d191e1c6
3 changed files with 28 additions and 19 deletions

View File

@ -2,6 +2,12 @@
# Define program names for package builtin.
# This file is for ALL systems and should not include UI components.
- name: General | Facts | Packages | Parrot OS Zypper Fix
set_fact:
ansible_pkg_mgr: "apt"
when: ansible_distribution == "Parrot OS"
- name: General | Facts | Package | apt
set_fact:
sshfs: sshfs
@ -25,17 +31,3 @@
opensshd: htop # sshd comes installed on FreeBSD
when: ansible_system == "FreeBSD"
- debug:
var: ansible_pkg_mgr
when: ansible_distribution == "Parrot OS"
- name: General | Facts | Packages | Parrot OS Zypper Fix
set_fact:
ansible_pkg_mgr: "apt"
when: ansible_distribution == "Parrot OS"
- debug:
var: ansible_pkg_mgr
when: ansible_distribution == "Parrot OS"

View File

@ -2,6 +2,12 @@
# Define program names per OS for package builtin.
# This is only for Workstation devices with UIs.
- name: Workstation | Facts | Packages | Parrot OS Zypper Fix
set_fact:
ansible_pkg_mgr: "apt"
when: ansible_distribution == "Parrot OS"
- name: Workstation | Facts | Package | Consistent
set_fact:
firefox: firefox
@ -45,6 +51,14 @@
when: ansible_distribution == "Linux Mint"
- name: Workstation | Facts | Package | Parrot OS
set_fact:
flatpak_distro: true
firefox_esr: firefox-esr
psutil: python3-psutil
when: ansible_distribution == "Parrot OS"
- name: Workstation | Facts | Package | Arch + Manjaro
set_fact:
flatpak_distro: true
@ -61,8 +75,3 @@
psutil: py37-psutil
when: ansible_system == "FreeBSD"
- name: Workstation | Facts | Packages | Parrot OS Zypper Fix
set_fact:
ansible_pkg_mgr: "apt"
when: ansible_distribution = "Parrot OS"

View File

@ -1,6 +1,14 @@
---
# Cross-platform package management.
- name: General | Software | Packages | "Fix" Parrot OS
# They have zypper higher in the path, but it's really apt renamed.
# Probably for "security", but package module does not use the ansible_pkg_mgr variable
# so resetting the value to apt doesn't work. Just going to move it.
shell: mv `which zypper` `which zypper`.zz.`date +%Y%m%d`
when ansible_distribution == "Parrot OS"
- name: General | Software | Packages | Cache Refresh (Apt and Pacman)
package:
update_cache: yes