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:
|
set_fact:
|
||||||
crond: cronie
|
crond: cronie
|
||||||
crond_pattern: cronie
|
crond_pattern: cronie
|
||||||
when: ansible_distribution in ("Archlinux")
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
- name: General | Facts | Service | Fedora
|
- name: General | Facts | Service | Fedora
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -16,12 +16,12 @@
|
|||||||
backup: yes
|
backup: yes
|
||||||
create: no
|
create: no
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == "Archlinux"
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
#- name: General | Account Management | Users | Use ZSH (Arch+Manjaro)
|
#- name: General | Account Management | Users | Use ZSH (Arch+Manjaro)
|
||||||
# set_fact:
|
# set_fact:
|
||||||
# user_shell: "{{ zsh_exec.stdout }}"
|
# user_shell: "{{ zsh_exec.stdout }}"
|
||||||
# when: ansible_distribution == "Archlinux"
|
# when: ansible_pkg_mgr == "pacman"
|
||||||
#
|
#
|
||||||
#- name: General | Account Management | Users | Allow ZSH (Arch)
|
#- name: General | Account Management | Users | Allow ZSH (Arch)
|
||||||
# lineinfile:
|
# lineinfile:
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
# backup: yes
|
# backup: yes
|
||||||
# create: no
|
# create: no
|
||||||
# state: present
|
# state: present
|
||||||
# when: ansible_distribution == "Archlinux"
|
# when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
|
|
||||||
## Root ##
|
## Root ##
|
||||||
@@ -130,8 +130,8 @@
|
|||||||
export_terminal: export TERMINAL="kitty"
|
export_terminal: export TERMINAL="kitty"
|
||||||
export_browser: |
|
export_browser: |
|
||||||
function find-firefox {
|
function find-firefox {
|
||||||
which firefox 2>/dev/null ||
|
which firefox 2>/dev/null ||
|
||||||
which firefox-esr 2>/dev/null ||
|
which firefox-esr 2>/dev/null ||
|
||||||
which firefox-flatpak 2>/dev/null
|
which firefox-flatpak 2>/dev/null
|
||||||
}
|
}
|
||||||
export BROWSER="`find-firefox`"
|
export BROWSER="`find-firefox`"
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
- which
|
- which
|
||||||
- "{{ cron }}"
|
- "{{ cron }}"
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == "Archlinux"
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
- name: General | Software | Packages | Install Fix (Looking at you, openSUSE)
|
- name: General | Software | Packages | Install Fix (Looking at you, openSUSE)
|
||||||
package:
|
package:
|
||||||
|
|||||||
Reference in New Issue
Block a user