Many updates over time
This commit is contained in:
51
README.md
51
README.md
@@ -70,6 +70,53 @@ nocows = 1
|
||||
```
|
||||
|
||||
|
||||
# OS Distro and Version
|
||||
|
||||
How to determine `ansible_distribution` for an exact host?
|
||||
|
||||
`ansible -i vlab/env.yml 'linprox' -m ansible.builtin.setup -a "filter=ansible_distribution*"`
|
||||
|
||||
```
|
||||
ansible_os_family
|
||||
Will say Debian for Debian AND Ubuntu
|
||||
Good to call files that work for BOTH Debian and Ubuntu
|
||||
Debian
|
||||
Archlinux
|
||||
|
||||
ansible_lsb.id
|
||||
This should be SAME as ansible_distribution
|
||||
But it relies on lsb-releases package being installed
|
||||
Best to use ansible_distribution as a standard
|
||||
NOTE: For Manjaro ansible_distribution=Manjaro
|
||||
but ansible_lsb.id=ManjaroLinux
|
||||
|
||||
ansible_distribution
|
||||
Debian
|
||||
Ubuntu
|
||||
Fedora
|
||||
RedHat
|
||||
Archlinux
|
||||
Manjaro
|
||||
|
||||
ansible_distribution_major_version
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
|
||||
18
|
||||
20
|
||||
22
|
||||
24
|
||||
|
||||
ansible_distribution_version
|
||||
22.04
|
||||
22.10
|
||||
24.04
|
||||
24.10
|
||||
```
|
||||
|
||||
|
||||
# Snippets
|
||||
|
||||
@@ -83,10 +130,10 @@ when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.0
|
||||
when: ansible_os_family == "Archlinux" and ansible_lsb.id == "ManjaroLinux"
|
||||
|
||||
# Copy profiles to /etc/profile.d/
|
||||
- include_tasks: ../../../functions/copy_etc-profile.d.yml
|
||||
- include_tasks: ../../shared/functions/copy_etc-profile.d.yml
|
||||
|
||||
# Copy scripts to /usr/local/bin
|
||||
- include_tasks: ../../../functions/copy_usr-local-bin.yml
|
||||
- include_tasks: ../../shared/functions/copy_usr-local-bin.yml
|
||||
|
||||
# Copy globs
|
||||
- name: Copying globs
|
||||
|
||||
Reference in New Issue
Block a user