4fdac509c6
Pull images from tarballs.openstack.org site[0] when there is no Depends-On in current commit message. [0] http://tarballs.openstack.org/kolla/images/ Change-Id: I2e5d4d7ed6418624494121e0a530ec95fd045970
45 lines
854 B
YAML
45 lines
854 B
YAML
---
|
|
- hosts: all
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Setup /etc/hosts
|
|
copy:
|
|
src: /etc/hosts
|
|
dest: /etc/hosts
|
|
|
|
- name: Ensure /etc/hostname is valid for SELinux
|
|
command: restorecon -v /etc/hostname
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: Assign hostname
|
|
hostname:
|
|
name: "{{ inventory_hostname }}"
|
|
|
|
- name: Copy setup script
|
|
copy:
|
|
src: setup_{{ ansible_os_family }}.sh
|
|
dest: /tmp/setup.sh
|
|
mode: 0755
|
|
|
|
- name: Install wget package
|
|
package: name=wget
|
|
|
|
- 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: /tmp/setup.sh
|
|
|
|
- name: Changing permissions of Docker socket to 666
|
|
file:
|
|
path: /run/docker.sock
|
|
mode: 0666
|