This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Installing HADOOP CLUSTER | |
| hosts: <hostgroup> | |
| become: yes | |
| gather_facts: true | |
| tasks: | |
| - name: Clearing the cache | |
| shell: sync; echo 3 > /proc/sys/vm/drop_caches |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: host mapping /etc/hosts of server | |
| hosts: <hostgroup> | |
| become: true | |
| tasks: | |
| - name: adding hostname mapping /etc/hosts | |
| lineinfile: | |
| dest: /etc/hosts | |
| insertbefore: '^127.0.0.1' | |
| line: '{{ item.0 }} {{ item.1 }}' | |
| with_together: |
NewerOlder