fixed all the syntax errors

parent 0f43b94b
...@@ -71,13 +71,20 @@ ...@@ -71,13 +71,20 @@
path: "{{ SQOOP_LIB }}" path: "{{ SQOOP_LIB }}"
state: directory state: directory
owner: "{{ hadoop_common_user }}" owner: "{{ hadoop_common_user }}"
group: {"{ hadoop_common_group }}" group: "{{ hadoop_common_group }}"
#TODO use copy module with remote_src: True once migrate to Ansible 2.x
- name: MySQL connector installed - name: MySQL connector installed
shell: > shell: "cp mysql-connector-java-{{ SQOOP_MYSQL_CONNECTOR_VERSION }}-bin.jar {{ SQOOP_LIB }}"
chdir=/{{ sqoop_temporary_dir }}/mysql-connector-java-{{ SQOOP_MYSQL_CONNECTOR_VERSION }} args:
cp mysql-connector-java-{{ SQOOP_MYSQL_CONNECTOR_VERSION }}-bin.jar {{ SQOOP_LIB }} && chdir: "{{ sqoop_temporary_dir }}/mysql-connector-java-{{ SQOOP_MYSQL_CONNECTOR_VERSION }}"
chown {{ hadoop_common_user }}:{{ hadoop_common_group }} {{ SQOOP_LIB }}/mysql-connector-java-{{ SQOOP_MYSQL_CONNECTOR_VERSION }}-bin.jar when: not installed.stat.exists
- name: FIx MySQL connector permission
file:
path: "{{ SQOOP_LIB }}/mysql-connector-java-{{ SQOOP_MYSQL_CONNECTOR_VERSION }}-bin.jar"
owner: "{{ hadoop_common_user }}"
group: "{{ hadoop_common_group }}"
when: not installed.stat.exists when: not installed.stat.exists
- name: Configuration installed - name: Configuration installed
...@@ -94,4 +101,5 @@ ...@@ -94,4 +101,5 @@
lineinfile: lineinfile:
dest: "{{ hadoop_common_env }}" dest: "{{ hadoop_common_env }}"
state: present state: present
regexp: "^. {{ SQOOP_CONF }}/sqoop-env.sh" line=". {{ SQOOP_CONF }}/sqoop-env.sh" regexp: "^. {{ SQOOP_CONF }}/sqoop-env.sh"
line: ". {{ SQOOP_CONF }}/sqoop-env.sh"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment