@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
31 lines (26 loc) • 727 B
YAML
- name: Run generic Linux tasks
include_tasks: install-Linux.yml
- name: "Ensure {{ app_name }} is installed"
dnf:
name: xrdp
state: "{{ app_state | default('present') }}"
enablerepo: "{{ 'epel' if ansible_distribution != 'Fedora' else omit }}"
when: install_xrdp
- name: "Ensure {{ app_name }} is started on boot"
systemd:
enabled: true
name: xrdp
state: started
when: install_xrdp
- name: "Determine whether or not GNOME is installed"
stat:
path: /usr/bin/gnome-shell
register: gnome_shell
- name: "Ensure GNOME Boxes is installed"
dnf:
name: gnome-boxes
state: "{{ app_state | default('present') }}"
when:
- install_gnome_boxes
- gnome_shell.stat.exists