Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- -
- name: Install Git, OpenJDK, MySql, Docker, Bamboo
- hosts: myservers
- remote_user: root
- vars:
- bamboo: atlassian-bamboo
- bamboover: 5.12.2.1
- dlpath: software/bamboo/downloads/binary
- tmp: /var/tmp
- installto: opt
- datahome: /srv/bamboo-data
- svcuser: someuser
- dbuser: someotheruser
- dbpass: somepassword
- tasks:
- - name: install epel-release
- yum: pkg=epel-release state=latest
- - name: install the open-vm-tools, htop, mlocate, ansible, autoconf, wget, java-1.8.0-openjdk-headless.x86_64, Development tools
- yum: state=present name={{item}}
- with_items:
- - open-vm-tools
- - htop
- - mlocate
- - ansible
- - autoconf
- - wget
- - java-1.8.0-openjdk-headless.x86_64
- - "Development tools"
- ## The task gets here and it doesn't continue for some reason.
- - name: Reboot the server after install
- command: reboot
- - name: wait for server to come back
- local_action:
- module: wait_for
- host={{inventory_hostname}}
- port=22
- state=started
- delay=1
- timeout=300
- sudo: false
- - name: updatedb
- command: updatedb >> playbook.log.txt
- - name: install mysql, mysql-community-server
- yum: name={{item}} state=present
- with_items:
- - http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
- - mysql-community-server
- - name: Start of mysqld
- command: service mysqld start >> playbook.log.txt
- [...] #Continues...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement