ansible-infra/playbooks/maintenance.yaml
June 1ea63a19d3
maintenance(playbook): ensure docker repo and install before update
As with ensuring the nginx repo setup and install on relevant hosts, do
the same for docker.
2025-02-18 05:48:01 +01:00

33 lines
1 KiB
YAML

- name: Ensure NGINX repo setup and nginx install on nginx_hosts and nextcloud_hosts
hosts: nginx_hosts:nextcloud_hosts
tasks:
- name: Ensure NGINX repo is setup
ansible.builtin.include_role:
name: nginx
tasks_from: main/02_repo_setup.yaml
- name: Ensure nginx is installed
ansible.builtin.include_role:
name: nginx
tasks_from: main/03_nginx_install.yaml
- name: Ensure Docker repo setup and package install on relevant hosts
hosts: docker_compose_hosts:nextcloud_hosts
tasks:
- name: Ensure Docker repo is setup
ansible.builtin.include_role:
name: docker
tasks_from: main/01_repo_setup.yaml
- name: Ensure Docker Engine and other related packages are installed
ansible.builtin.include_role:
name: docker
tasks_from: main/02_docker_install.yaml
- name: Make Sure System Package Are Up-To-Date for all non-hypervisors
hosts: all:!hypervisors
roles:
- apt_update_and_upgrade
- name: Run deploy Playbook
ansible.builtin.import_playbook: deploy.yaml