Deploy lsyncd config properly on CentOS
This patch deploys the lsyncd configuration file and defaults file to their proper locations on CentOS systems. Closes-Bug: 1656945 Change-Id: I375ce4c3dbc6a362057a22fef389f5ac652ddd5d
This commit is contained in:
parent
c6c40bc3ae
commit
b8b9d63592
@ -13,17 +13,17 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Drop lsyncd configuration file
|
||||
- name: Deploy lsyncd configuration file
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: "lsyncd.lua.j2", dest: "/etc/lsyncd/lsyncd.conf.lua" }
|
||||
- { src: "lsyncd.defaults.j2", dest: "/etc/default/lsyncd" }
|
||||
- { src: "lsyncd.lua.j2", dest: "{{ repo_lsyncd_config_file }}" }
|
||||
- { src: "lsyncd.defaults.j2", dest: "{{ repo_lsyncd_defaults_file }}" }
|
||||
notify:
|
||||
- reload lsyncd
|
||||
when: >
|
||||
groups['repo_all']|length > 1
|
||||
when:
|
||||
- groups['repo_all']|length > 1
|
||||
tags:
|
||||
- repo-lsyncd
|
||||
- repo-config
|
||||
|
@ -26,3 +26,6 @@ repo_server_distro_packages:
|
||||
|
||||
repo_pkg_cache_server_distro_packages:
|
||||
- apt-cacher-ng
|
||||
|
||||
repo_lsyncd_config_file: /etc/lsyncd/lsyncd.conf.lua
|
||||
repo_lsyncd_defaults_file: /etc/default/lsyncd
|
||||
|
@ -27,3 +27,5 @@ repo_server_distro_packages:
|
||||
repo_pkg_cache_server_distro_packages:
|
||||
- apt-cacher-ng
|
||||
|
||||
repo_lsyncd_config_file: /etc/lsyncd.conf
|
||||
repo_lsyncd_defaults_file: /etc/sysconfig/lsyncd
|
||||
|
Loading…
x
Reference in New Issue
Block a user