Skip to content

Commit

Permalink
fix: ansible syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeHold committed Sep 22, 2023
1 parent d2ac47b commit 0f6e267
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
22 changes: 11 additions & 11 deletions roles/spark/client/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

---
- name: Ensure spark common installation steps are performed
import_role:
ansible.builtin.import_role:
name: tosit.tdp.spark.common
tasks_from: install

- name: Upload spark hbase jar
copy:
ansible.builtin.copy:
src: "{{ binaries_local_dir }}/{{ spark_hbase_dist_file }}"
dest: "{{ spark_root_dir }}/{{ spark_release }}/jars"
owner: root
Expand All @@ -18,7 +18,7 @@
diff: false

- name: Copy audience-annotations dependency
copy:
ansible.builtin.copy:
src: "{{ hbase_install_dir }}/lib/client-facing-thirdparty/audience-annotations-0.5.0.jar"
dest: "{{ spark_root_dir }}/{{ spark_release }}/jars"
owner: root
Expand All @@ -29,47 +29,47 @@
diff: false

- name: Create configuration directory
file:
ansible.builtin.file:
path: "{{ spark_client_conf_dir }}"
state: directory
owner: root
group: root
mode: "755"

- name: "Render /usr/bin/{{ spark_version }}-submit command"
template:
ansible.builtin.template:
src: spark-submit-command.j2
dest: "/usr/bin/{{ spark_version }}-submit"
owner: root
group: root
mode: "755"

- name: "Render /usr/bin/{{ spark_version }}-shell command"
template:
ansible.builtin.template:
src: spark-shell-command.j2
dest: "/usr/bin/{{ spark_version }}-shell"
owner: root
group: root
mode: "755"

- name: "Render /usr/bin/{{ spark_version }}-sql command"
template:
ansible.builtin.template:
src: spark-sql-command.j2
dest: "/usr/bin/{{ spark_version }}-sql"
owner: root
group: root
mode: "755"

- name: "Render /usr/bin/py{{ spark_version }} command"
template:
ansible.builtin.template:
src: pyspark-command.j2
dest: "/usr/bin/py{{ spark_version }}"
owner: root
group: root
mode: "755"

- name: "Render /usr/bin/{{ spark_version }}R-shell command"
template:
ansible.builtin.template:
src: sparkr-shell-command.j2
dest: "/usr/bin/{{ spark_version }}r-shell"
owner: root
Expand All @@ -78,8 +78,8 @@
when: (spark_version == "spark3") and spark_enable_r

- name: Create symbolic link to R library
file:
ansible.builtin.file:
src: "{{ spark_install_dir }}/R/lib/SparkR"
dest: "/usr/lib64/R/library/SparkR"
state: link
when: (spark_version == "spark3") and spark_enable_r
when: (spark_version == "spark3") and spark_enable_r

Check failure on line 85 in roles/spark/client/tasks/install.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[new-line-at-end-of-file]

No new line character at the end of file
3 changes: 1 addition & 2 deletions roles/spark/common/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@
state: directory
owner: "{{ spark_user }}"
group: "{{ hadoop_group }}"
mode: "750"

mode: "750"

Check failure on line 59 in roles/spark/common/tasks/install.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[new-line-at-end-of-file]

No new line character at the end of file

0 comments on commit 0f6e267

Please sign in to comment.