June
11bbf187c6
Ensure NGINX repo and install on nginx_hosts before apt update, so that the latest NGINX key is deployed and apt update won't fail on an invalid signature on these hosts. Also only run the gnupg install if gnupg isn't present in the nginx repo_setup.yaml to make that work.
21 lines
532 B
YAML
21 lines
532 B
YAML
- 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
|
|
|
|
- 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
|