mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
23 lines
535 B
YAML
23 lines
535 B
YAML
---
|
|
- name: Info
|
|
debug:
|
|
msg:
|
|
ansible_os_family: "{{ ansible_os_family }}"
|
|
ansible_distribution: "{{ ansible_distribution }}"
|
|
|
|
- name: Setting generic facts
|
|
tags: always
|
|
ansible.builtin.set_fact:
|
|
username: alice
|
|
home: "/home/alice"
|
|
use_become: true
|
|
mac_os: "{{ ansible_distribution == 'MacOSX' }}"
|
|
archlinux: "{{ ansible_distribution == 'Archlinux' }}"
|
|
|
|
- name: Setting macos facts
|
|
tags: always
|
|
when: mac_os
|
|
ansible.builtin.set_fact:
|
|
install_with_root: false
|
|
home: "/Users/alice"
|