Fix dash in variable name. Update hosts file. Better names in local.

This commit is contained in:
Hyperling 2021-02-02 21:31:45 -06:00
parent 2951b687ae
commit bb242098db
5 changed files with 9 additions and 11 deletions

View File

@ -5,7 +5,7 @@
- name: Facts | Workstation | Package | Pop OS
set_fact:
firefox: firefox
firefox-esr: firefox-esr
firefox_esr: firefox-esr
thunderbird: thunderbird
evolution: evolution
when: ansible_distribution == "Pop!_OS"
@ -14,7 +14,7 @@
- name: Facts | Workstation | Package | Debian and Ubuntu
set_fact:
firefox: firefox
firefox-esr: firefox-esr
firefox_esr: firefox-esr
thunderbird: thunderbird
evolution: evolution
when: ansible_distribution in ("Debian","Ubuntu")
@ -23,7 +23,7 @@
- name: Facts | Workstation | Package | FreeBSD
set_fact:
firefox: firefox
firefox-esr: firefox-esr
firefox_esr: firefox-esr
thunderbird: thunderbird
evolution: evolution
when: ansible_system == "FreeBSD"

4
hosts
View File

@ -1,7 +1,5 @@
[everything]
localhost
[workstation]
x570
freeboy
dell-laptop
usb

View File

@ -2,7 +2,7 @@
# Harmonize my systems rather than doing everything manually. :)
# Everything
- name: Initial Setup
- name: Main | Default Setup
hosts: localhost
connection: local
become: true
@ -31,7 +31,7 @@
# Workstations
- name: UI Setup
- name: Main | Workstation UI Setup
hosts: workstation
connection: local
become: true
@ -53,7 +53,7 @@
# Run Hardness Checks
- name: Hardening Check
- name: Main | Hardness Checks
hosts: localhost
connection: local
become: true

View File

@ -6,7 +6,7 @@
name:
- xorg
- gnome3
- "{{ firefox-esr }}"
- "{{ firefox_esr }}"
- "{{ thunderbird }}"
state: present

View File

@ -35,7 +35,7 @@
package:
name:
- "{{ firefox }}"
- "{{ firefox-esr }}"
- "{{ firefox_esr }}"
- "{{ thunderbird }}"
- "{{ evolution }}"
state: absent