Skip to content
Snippets Groups Projects
Commit cc098c19 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Improve playbook to setup gate nodes"

parents 520ac182 ce11216a
No related branches found
No related tags found
No related merge requests found
---
- hosts: all
sudo: yes
become: true
tasks:
- name: Setup /etc/hosts
copy:
......@@ -22,14 +23,19 @@
mode: 0755
- hosts: all
become: true
tasks:
- name: Create log directory for node
file:
state: directory
path: /tmp/{{ inventory_hostname }}
become: false
- name: Run node setup
shell: sudo /tmp/setup.sh
shell: /tmp/setup.sh
- name: Changing permissions of docker socket to 666
shell: sudo chmod 0666 /run/docker.sock
- name: Changing permissions of Docker socket to 666
file:
path: /run/docker.sock
mode: 0666
......@@ -132,7 +132,7 @@ EOF
}
function setup_node {
ansible-playbook -i ${RAW_INVENTORY} tools/setup_nodes.yml
ansible-playbook -i ${RAW_INVENTORY} tools/playbook-setup-nodes.yml
}
function setup_logging {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment