Merge "CI: Remove playbook-setup-nodes.yml"

This commit is contained in:
Zuul 2019-11-08 17:29:17 +00:00 committed by Gerrit Code Review
commit 9c614564c6
2 changed files with 0 additions and 44 deletions

View File

@ -1,39 +0,0 @@
---
- hosts: all
become: true
tasks:
- name: Ensure /etc/hostname is valid for SELinux
command: restorecon -v /etc/hostname
when: ansible_os_family == 'RedHat'
- name: Install wget package
package: name=wget
- name: Add sudo group
group:
name: sudo
state: present
- name: Allow 'sudo' group to have passwordless sudo
lineinfile:
dest: /etc/sudoers
state: present
line: "%sudo ALL=(ALL) NOPASSWD: ALL"
- name: Add jenkins to sudo group
user:
name: jenkins
append: yes
groups: "sudo"
- hosts: all
become: true
tasks:
- name: Create log directory for node
file:
state: directory
path: /tmp/{{ inventory_hostname }}
become: false

View File

@ -97,10 +97,6 @@ EOF
ansible all -i ${RAW_INVENTORY} -e ansible_user=$USER -m setup > /tmp/logs/ansible/initial-setup
}
function setup_node {
ansible-playbook -i ${RAW_INVENTORY} -e ansible_user=$USER tools/playbook-setup-nodes.yml
}
function prepare_images {
if [[ "${BUILD_IMAGE}" == "False" ]]; then
return
@ -115,7 +111,6 @@ setup_openstack_clients
setup_ansible
setup_config
setup_node
tools/kolla-ansible -i ${RAW_INVENTORY} -e ansible_user=$USER -vvv bootstrap-servers &> /tmp/logs/ansible/bootstrap-servers
prepare_images