2024-06-18 01:14:00 +02:00
|
|
|
- name: Ensure NGINX repo and install on nginx_hosts
|
|
|
|
hosts: nginx_hosts
|
|
|
|
tasks:
|
|
|
|
- name: make sure NGINX repos are setup
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: nginx
|
|
|
|
tasks_from: main/repo_setup
|
|
|
|
|
|
|
|
- name: make sure NGINX is installed
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: nginx
|
|
|
|
tasks_from: main/nginx_install
|
|
|
|
|
2024-06-18 01:37:41 +02:00
|
|
|
- name: Ensure NGINX repo and install on nextcloud_hosts
|
|
|
|
hosts: nextcloud_hosts:!nginx_hosts
|
|
|
|
tasks:
|
|
|
|
- name: make sure NGINX repos are setup
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: nginx
|
|
|
|
tasks_from: main/repo_setup
|
|
|
|
|
|
|
|
- name: make sure NGINX is installed
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: nginx
|
|
|
|
tasks_from: main/nginx_install
|
|
|
|
vars:
|
|
|
|
nginx__version_spec: "{{ nextcloud__nginx_version_spec | default('') }}"
|
|
|
|
|
2023-09-25 02:57:30 +02:00
|
|
|
- name: Make Sure System Package Are Up-To-Date
|
|
|
|
hosts: all
|
|
|
|
roles:
|
|
|
|
- apt_update_and_upgrade
|
|
|
|
|
|
|
|
- name: Run deploy Playbook
|
|
|
|
ansible.builtin.import_playbook: deploy.yaml
|