@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) • 785 B
YAML
- name: "Ensure {{ app_name }} is installed"
apt:
name: kodi
state: "{{ app_state | default('present') }}"
update_cache: "{{ omit if skip_package_cache_update is defined else 'true' }}"
- name: Ensure add-ons are installed
apt:
name: "{{ kodi_addons }}"
state: present
when: kodi_addons is defined
- name: Ensure MariaDB is installed
apt:
name: mariadb-server
state: present
when: kodi_mysql_ishost
- name: Run generic Linux tasks
include_tasks: sql-Linux.yml
when: kodi_mysql_ishost
- name: Run generic Linux tasks
include_tasks: setup-Linux.yml
loop: "{{ user_configs }}"
loop_control:
label: "{{ user.username }}"
loop_var: user
when: (user.system is not defined) or ((user.system is defined) and (not user.system))