Files
geedge-jira/md/OSS-17.md
2025-09-14 21:52:36 +00:00

70 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Ansible第三次练习
| ID | Creation Date | Assignee | Status |
|----|----------------|----------|--------|
| OSS-17 | 2020-03-10T23:58:06.000+0800 | 彭程 | 完成 |
---
No description
---
**pengcheng** commented on *2020-03-16T21:17:15.595+0800*:
1.zookeeper
name: "copy any scripts"
with_item: >with_items:
2.kafka
name: "copy any scripts and log4j.properties"
mode 0755放在循环之上
with_items需退两格对齐格式
3.kafka-manager
name: "template application.conf"
dest最后
4.jdk
reqister变量不对
添加ignore_errors: true
5.zookeeper
name: "create zookeeper base_dir"
state:touch >state:directory
6.zoo.cfg.j2
dataDir={{ zookeeper.base_dir }}/{{ version }}/data
dataDir={{ zookeeper.base_dir }}/{{ zookeeper.version }}/data
7.zookeeper
- name: "start keepzkalive"
name: keepzkalive > name: keepalived
8.kafka : template server.properties
broker-id > broker_id
ehtname > ethname
9.kafka
name:"start keepalived"
name:keepkafalive > keepalived
10.zookeeper
name: "copy log4j.properties"
dest: '{{ zookeeper.base_dir }}/{{ zookeeper.version }}conf/' > dest: '{{ zookeeper.base_dir }}/{{ zookeeper.version }}/conf/'
---
## Attachments