Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
- name: Check if MySQL is already installed.
|
||||
stat: path=/etc/init.d/mysql
|
||||
register: mysql_installed
|
||||
|
||||
- name: Update apt cache if MySQL is not yet installed.
|
||||
apt: update_cache=yes
|
||||
when: mysql_installed.stat.exists == false
|
||||
|
||||
- name: Ensure MySQL Python libraries are installed.
|
||||
apt: "name=python-mysqldb state=installed"
|
||||
|
||||
- name: Ensure MySQL packages are installed.
|
||||
apt: "name={{ item }} state=installed"
|
||||
with_items: "{{ mysql_packages }}"
|
||||
register: deb_mysql_install_packages
|
||||
|
||||
# Because Ubuntu starts MySQL as part of the install process, we need to stop
|
||||
# mysql and remove the logfiles in case the user set a custom log file size.
|
||||
- name: Ensure MySQL is stopped after initial install.
|
||||
service: "name={{ mysql_daemon }} state=stopped"
|
||||
when: mysql_installed.stat.exists == false
|
||||
|
||||
- name: Delete innodb log files created by apt package after initial install.
|
||||
file: path={{ mysql_datadir }}/{{item}} state=absent
|
||||
with_items:
|
||||
- "ib_logfile0"
|
||||
- "ib_logfile1"
|
||||
when: mysql_installed.stat.exists == false
|
Loading…
Add table
Add a link
Reference in a new issue