Tag it up.
This commit is contained in:
parent
4866769621
commit
52206697bb
1 changed files with 16 additions and 1 deletions
|
@ -8,17 +8,32 @@
|
|||
# Just do some sanity checking first
|
||||
- fail: msg="Bailing out. 'name' must be passed to this role."
|
||||
when: name is not defined
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/redirect
|
||||
- fail: msg="Bailing out. 'website' must be passed to this role."
|
||||
when: website is not defined
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/redirect
|
||||
- fail: msg="Bailing out. 'target' must be passed to this role."
|
||||
when: target is not defined
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/redirect
|
||||
|
||||
# These two should never fail. We have defaults for them defined in
|
||||
# roles/httpd/redirect/vars/main.yml -- They are checked here for completeness.
|
||||
- fail: msg="Bailing out. 'path' must be passed to this role."
|
||||
when: path is not defined
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/redirect
|
||||
- fail: msg="Bailing out. 'status' must be passed to this role."
|
||||
when: status is not defined
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/redirect
|
||||
|
||||
# This is the only real work we do.
|
||||
- name: Copy over httpd redirect file.
|
||||
|
@ -32,4 +47,4 @@
|
|||
- restart httpd
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/redirects
|
||||
- httpd/redirect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue