test new run job

This commit is contained in:
2024-11-17 19:02:14 +03:00
parent 74f04d975c
commit 2f21245787
2 changed files with 52 additions and 15 deletions

View File

@ -16,7 +16,7 @@
owner: nginx
group: nginx
mode: '0755'
when: inventory_hostname in groups['SiteA']
when: "'SiteA' in group_names"
- name: Create web root for SiteB
file:
@ -25,19 +25,19 @@
owner: nginx
group: nginx
mode: '0755'
when: inventory_hostname in groups['SiteB']
when: "'SiteB' in group_names"
- name: Deploy SiteA Configuration
template:
src: siteA.conf.j2
dest: /etc/nginx/conf.d/siteA.conf
when: inventory_hostname in groups['SiteA']
when: "'SiteA' in group_names"
- name: Deploy SiteB Configuration
template:
src: siteB.conf.j2
dest: /etc/nginx/conf.d/siteB.conf
when: inventory_hostname in groups['SiteB']
when: "'SiteB' in group_names"
- name: Deploy SiteA HTML
template:
@ -48,7 +48,7 @@
site_h1: "{{ siteA.site_h1 }}"
site_h2: "{{ siteA.site_h2 }}"
site_p: "{{ siteA.site_p }}"
when: inventory_hostname in groups['SiteA']
when: "'SiteA' in group_names"
- name: Deploy SiteB HTML
template:
@ -59,7 +59,7 @@
site_h1: "{{ siteB.site_h1 }}"
site_h2: "{{ siteB.site_h2 }}"
site_p: "{{ siteB.site_p }}"
when: inventory_hostname in groups['SiteB']
when: "'SiteB' in group_names"
- name: Reload Nginx
systemd: