Commit 407ccc25 authored by Joab Bremer's avatar Joab Bremer
parents 0684d02a 93a30e9e
deploy_playbooks_on_runner:
script:
- "cd /home/gitlab-runner/automation_usb"
- "ansible-playbook playbooks-geral.yml"
environment:
name: production
only:
- master
stages:
- build
build-code-job:
stage: build
script:
- 'ansible-playbook -b -v -u root update_ip.yml -kkkk --extra-vars "usb-group" -i usb_hosts_web'
---
- hosts: gitlab-runner
sudo: yes
tasks:
#- name: Instalar Cliente git
# yum: name=git state=present
- name: Deploy da aplicação
git: repo=git@10.11.0.23:joab.bremer/automation_usb.git dest=/home/gitlab-runner/automation_usb version=master accept_hostkey=True force=True
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