diff --git a/defaults/main.yaml b/defaults/main.yaml index ed93b3b..7a50b83 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -28,7 +28,7 @@ zookeeper_file_zoo_conf_mode: 0644 zookeeper_file_zoo_conf_owner: zookeeper # tasks/install.yaml -zookeeper_package_state: installed +zookeeper_package_state: present zookeeper_install_method: package diff --git a/tasks/config.yaml b/tasks/config.yaml index 930ac7d..3a2ebd8 100644 --- a/tasks/config.yaml +++ b/tasks/config.yaml @@ -32,7 +32,7 @@ zookeeper_file_zoo_conf_src: "{{ __zookeeper_file_zoo_conf_src }}" when: zookeeper_file_zoo_conf_src is not defined -- name: Install zookeeper myid. +- name: Install zookeeper myid become: yes template: dest: "{{ zookeeper_file_myid_dest }}" @@ -42,7 +42,7 @@ src: "{{ zookeeper_file_myid_src }}" register: zookeeper_file_myid -- name: Install zookeeper configuration. +- name: Install zookeeper configuration become: yes template: dest: "{{ zookeeper_file_zoo_conf_dest }}" diff --git a/tasks/install/package.yaml b/tasks/install/package.yaml index a3f546d..a178451 100644 --- a/tasks/install/package.yaml +++ b/tasks/install/package.yaml @@ -17,7 +17,7 @@ zookeeper_package_name: "{{ __zookeeper_package_name }}" when: zookeeper_package_name is not defined -- name: Ensure zookeeper is installed. +- name: Ensure zookeeper is present become: yes package: name: "{{ zookeeper_package_name }}" diff --git a/tasks/main.yaml b/tasks/main.yaml index 696aad0..07e64a2 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Include OS-specific variables. +- name: Include OS-specific variables include_vars: "{{ ansible_os_family }}.yaml" - include: "{{ zookeeper_task }}.yaml" diff --git a/tasks/service.yaml b/tasks/service.yaml index 8a65cab..e1ae709 100644 --- a/tasks/service.yaml +++ b/tasks/service.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Enable zookeeper service. +- name: Enable zookeeper service become: yes service: enabled: "{{ zookeeper_service_zookeeper_enabled }}"