arch, change checks for Archlinux to looking for pacman in case forks decide to use their own name in the future.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
set_fact:
|
||||
crond: cronie
|
||||
crond_pattern: cronie
|
||||
when: ansible_distribution in ("Archlinux")
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
- name: General | Facts | Service | Fedora
|
||||
set_fact:
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
backup: yes
|
||||
create: no
|
||||
state: present
|
||||
when: ansible_distribution == "Archlinux"
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
#- name: General | Account Management | Users | Use ZSH (Arch+Manjaro)
|
||||
# set_fact:
|
||||
# user_shell: "{{ zsh_exec.stdout }}"
|
||||
# when: ansible_distribution == "Archlinux"
|
||||
# when: ansible_pkg_mgr == "pacman"
|
||||
#
|
||||
#- name: General | Account Management | Users | Allow ZSH (Arch)
|
||||
# lineinfile:
|
||||
@@ -32,7 +32,7 @@
|
||||
# backup: yes
|
||||
# create: no
|
||||
# state: present
|
||||
# when: ansible_distribution == "Archlinux"
|
||||
# when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
|
||||
## Root ##
|
||||
@@ -130,8 +130,8 @@
|
||||
export_terminal: export TERMINAL="kitty"
|
||||
export_browser: |
|
||||
function find-firefox {
|
||||
which firefox 2>/dev/null ||
|
||||
which firefox-esr 2>/dev/null ||
|
||||
which firefox 2>/dev/null ||
|
||||
which firefox-esr 2>/dev/null ||
|
||||
which firefox-flatpak 2>/dev/null
|
||||
}
|
||||
export BROWSER="`find-firefox`"
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
- which
|
||||
- "{{ cron }}"
|
||||
state: present
|
||||
when: ansible_distribution == "Archlinux"
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
- name: General | Software | Packages | Install Fix (Looking at you, openSUSE)
|
||||
package:
|
||||
|
||||
Reference in New Issue
Block a user