use the standard list for src,dest and mode

parent d3ff2e07
......@@ -98,28 +98,28 @@
- name: Configuration installed
template:
src: "{{ item }}.j2"
dest: "{{ HADOOP_COMMON_CONF_DIR }}/{{ item }}"
mode: "0640"
src: "{{ item.src }}"
dest: "{{ HADOOP_COMMON_CONF_DIR }}/{{ item.dest }}"
mode: "{{ item.mode }}"
owner: "{{ hadoop_common_user }}"
group: "{{ hadoop_common_group }}"
with_items:
- hadoop-env.sh
- mapred-site.xml
- core-site.xml
- hdfs-site.xml
- yarn-site.xml
- { src: 'hadoop-env.sh.j2', dest: 'hadoop-env.sh', mode: '0640' }
- { src: 'mapred-site.xml.j2', dest: 'mapred-site.xml', mode: '0640' }
- { src: 'core-site.xml.j2', dest: 'core-site.xml', mode: '0640' }
- { src: 'hdfs-site.xml.j2', dest: 'hdfs-site.xml', mode: '0640' }
- { src: 'yarn-site.xml.j2', dest: 'yarn-site.xml', mode: '0640' }
- name: Upstart scripts installed
template:
src: "{{ item }}.j2"
dest: "/etc/init/{{ item }}"
mode: "0640"
src: "{{ item.src }}"
dest: "/etc/init/{{ item.dest }}"
mode: "{{ item.mode }}"
owner: root
group: root
with_items:
- hdfs.conf
- yarn.conf
- { src: 'hdfs.conf.j2', dest: 'hdfs.conf', mode: '0640' }
- { src: 'yarn.conf.j2', dest: 'yarn.conf', mode: '0640' }
- name: Hadoop env file exists
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