Starting to test Ubuntu Server. Need to find a way to get it working without putting it in the hosts file.
This commit is contained in:
parent
9395e309a5
commit
5c47f396ec
@ -1,7 +1,7 @@
|
||||
---
|
||||
# Define what the file and folder names should be on each OS.
|
||||
|
||||
- name: Set Pop!_OS FS Names
|
||||
- name: Set Pop!_OS Desktop Facts
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_distro: yes
|
||||
lynis_install_dir: /usr/local/lynis
|
||||
@ -11,16 +11,16 @@
|
||||
|
||||
|
||||
# TODO Needs tested
|
||||
- name: Set Ubuntu FS Names
|
||||
- name: Set Debian+Ubuntu Server Facts
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_distro: yes
|
||||
lynis_install_dir: /usr/local/lynis
|
||||
lynis_report: /root/lynis.log
|
||||
sudoers_install_dir: /etc/sudoers.d/ansible
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
when: ansible_distribution in ("Debian","Ubuntu")
|
||||
|
||||
|
||||
- name: Set FreeBSD FS Names
|
||||
- name: Set FreeBSD Facts
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_distro: no
|
||||
lynis_install_dir: /usr/local/lynis
|
||||
|
@ -3,15 +3,10 @@
|
||||
|
||||
- name: Set Linux User Variables
|
||||
ansible.builtin.set_fact:
|
||||
root: root
|
||||
root_group: root
|
||||
ansible: ansible
|
||||
when: ansible_distribution == "Pop!_OS" or
|
||||
ansible_distribution == "Ubuntu"
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- name: Set FreeBSD User Variables
|
||||
ansible.builtin.set_fact:
|
||||
root: root
|
||||
root_group: wheel
|
||||
ansible: ansible
|
||||
when: ansible_distribution == "FreeBSD"
|
||||
when: ansible_system == "FreeBSD"
|
11
hosts
11
hosts
@ -1,12 +1,9 @@
|
||||
[all]
|
||||
localhost
|
||||
|
||||
[workstation]
|
||||
x570
|
||||
dell-laptop
|
||||
|
||||
[server]
|
||||
freeboy
|
||||
|
||||
[dad]
|
||||
not_installed_yet
|
||||
|
||||
[on_a_home_network]
|
||||
192.168.[0:255].[0:255]
|
||||
freeboy
|
20
local.yml
20
local.yml
@ -21,7 +21,7 @@
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
# Linux Workstations
|
||||
# Workstations
|
||||
- name: UI Setup
|
||||
hosts: workstation
|
||||
connection: local
|
||||
@ -29,19 +29,13 @@
|
||||
|
||||
tasks:
|
||||
- include: tasks/flatpaks.yml
|
||||
when: ansible_distribution != "FreeBSD"
|
||||
and "{{ flatpak_distro }} == yes"
|
||||
|
||||
|
||||
# FreeBSD Workstations
|
||||
- name: FreeBSD UI Setup
|
||||
hosts: workstation
|
||||
connection: local
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
when: ansible_system == "Linux" and
|
||||
"{{ flatpak_distro }} == yes"
|
||||
- shell: echo "Not implemented yet. :("
|
||||
when: ansible_system == "Linux" and
|
||||
"{{ flatpak_distro }} == no"
|
||||
- include: tasks/freebsd_gui.yml
|
||||
when: ansible_distribution == "FreeBSD"
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
|
||||
# Run Hardness Checks
|
||||
|
Loading…
x
Reference in New Issue
Block a user