Merge "Additional handler cleanup"
This commit is contained in:
commit
39378ce66e
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2020 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
|
@ -1,22 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
- name: Cleanup temp file
|
|
||||||
file:
|
|
||||||
path: "{{ tempfile_1.path }}"
|
|
||||||
state: absent
|
|
||||||
delegate_to: localhost
|
|
||||||
connection: local
|
|
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
|
@ -1,30 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
- name: restart httpd
|
|
||||||
command: /bin/true
|
|
||||||
notify:
|
|
||||||
- Image-Serve | reload systemd
|
|
||||||
- Image-Serve | reload httpd
|
|
||||||
listen: "restart httpd service"
|
|
||||||
|
|
||||||
- name: Image-Serve | reload httpd
|
|
||||||
systemd:
|
|
||||||
name: httpd
|
|
||||||
state: restarted
|
|
||||||
enabled: true
|
|
||||||
daemon_reload: true
|
|
|
@ -19,6 +19,7 @@
|
||||||
package:
|
package:
|
||||||
name: httpd
|
name: httpd
|
||||||
state: present
|
state: present
|
||||||
|
register: tripleo_image_serve_pkg_result
|
||||||
|
|
||||||
- name: create image data directory
|
- name: create image data directory
|
||||||
file:
|
file:
|
||||||
|
@ -43,12 +44,21 @@
|
||||||
path: /etc/httpd/conf/httpd.conf
|
path: /etc/httpd/conf/httpd.conf
|
||||||
regexp: '^\s*Listen(.*)$'
|
regexp: '^\s*Listen(.*)$'
|
||||||
line: '# Listen \1'
|
line: '# Listen \1'
|
||||||
|
register: tripleo_image_serve_httpd_config_result
|
||||||
|
|
||||||
- name: manage /etc/httpd/conf.d/image-serve.conf
|
- name: manage /etc/httpd/conf.d/image-serve.conf
|
||||||
template:
|
template:
|
||||||
src: image-serve.conf.j2
|
src: image-serve.conf.j2
|
||||||
dest: /etc/httpd/conf.d/image-serve.conf
|
dest: /etc/httpd/conf.d/image-serve.conf
|
||||||
notify: Image-Serve | reload httpd
|
register: tripleo_image_serve_config_result
|
||||||
|
|
||||||
- name: force systemd to reread configs
|
- name: Image-Serve | restart httpd
|
||||||
meta: flush_handlers
|
systemd:
|
||||||
|
name: httpd
|
||||||
|
state: restarted
|
||||||
|
enabled: true
|
||||||
|
daemon_reload: true
|
||||||
|
when:
|
||||||
|
- (tripleo_image_serve_pkg_result.changed or
|
||||||
|
tripleo_image_serve_httpd_config_result.changed or
|
||||||
|
tripleo_image_serve_config_result.changed)
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2020 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
Loading…
Reference in New Issue