Change to checking if gdm3 already exists.
This commit is contained in:
parent
099abfc5db
commit
2bdcef938c
@ -1,24 +1,28 @@
|
|||||||
# Some Linux distros come with meh DE's, this fixes that.
|
# Some Linux distros come with meh DE's, this fixes that.
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | GNOME | Check (Parrot OS Only)
|
||||||
|
shell: which gdm3
|
||||||
|
register: gnome_install
|
||||||
|
when: ansible_distribution in ("Parrot OS")
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | GNOME | Install
|
- name: Workstation | Linux | Software | GNOME | Install
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- gnome
|
- gnome
|
||||||
- gdm3
|
- gdm3
|
||||||
state: present
|
state: present
|
||||||
register: gnome_install
|
when: gnome_install is defined and gnome_install.failed
|
||||||
when: ansible_distribution in ("Parrot OS")
|
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | GNOME | TEST
|
- name: Workstation | Linux | Software | GNOME | TEST
|
||||||
debug:
|
debug:
|
||||||
var: gnome_install
|
var: gnome_install
|
||||||
when: gnome_install is defined and gnome_install.changed
|
when: gnome_install is defined and gnome_install.failed
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | GNOME | Note Before Exiting
|
- name: Workstation | Linux | Software | GNOME | Note Before Exiting
|
||||||
debug:
|
debug:
|
||||||
msg: "You will probably need to run `dpkg-reconfigure gdm3` to ensure gdm3 is selected."
|
msg: "You will probably need to run `dpkg-reconfigure gdm3` to ensure gdm3 is selected."
|
||||||
when: gnome_install is defined and gnome_install.changed
|
when: gnome_install is defined and gnome_install.failed
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | GNOME | Exiting
|
- name: Workstation | Linux | Software | GNOME | Exiting
|
||||||
shell: exit 1
|
shell: exit 1
|
||||||
when: gnome_install is defined and gnome_install.changed
|
when: gnome_install is defined and gnome_install.failed
|
Loading…
x
Reference in New Issue
Block a user