Added nfs mount, sshpass, and serialization to playbook

This commit is contained in:
Cody Wimer
2017-07-26 21:35:30 -04:00
parent 14e07095f2
commit ee66afacbc
4 changed files with 31 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
---
# Variables listed here are applicable to all host groups
docker_compose_version_to_install: 1.13.0
docker_ce_version_to_install: 17.03.0~ce-0~ubuntu-{{ ansible_distribution_release }}
docker_compose_version_to_install: 1.14.0
docker_ce_version_to_install: 17.06.0~ce-0~ubuntu

View File

@@ -2,13 +2,15 @@
# This playbook deploys a development machine
- name: Apply common configuration to all nodes
hosts: developer-machines
hosts: all
user: root
serial: 100%
tasks:
- include: ../roles/common/tasks/main.yml
- name: Apply common configuration to all nodes
- name: Set up developer machine
hosts: developer-machines
user: root
serial: 100%
tasks:
- include: ../roles/developer-machine/tasks/main.yml

View File

@@ -29,12 +29,18 @@
- ntp
- mysql-client
- wget
- nfs-common
- docker-ce={{docker_ce_version_to_install}}
- sshpass
- name: Set git username
become: yes
become_user: cody
shell: git config --global user.name "Jacob Cody Wimer"
- name: Set git email
become: yes
become_user: cody
shell: git config --global user.email "jacob.wimer@gmail.com"
- name: Docker compose version
@@ -58,6 +64,13 @@
- name: Replace sudoers file
template: src=../roles/common/templates/sudoers.j2 dest=/etc/sudoers
- name: Creates directory
file: path=/data state=directory
- name: Mount data directory
shell: mount 10.0.0.150:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data/{{ ansible_hostname }} /data
ignore_errors: yes
- name: test for swap partition
shell: swapon -s | grep -E "^/"
register: swapfile

View File

@@ -0,0 +1,12 @@
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=a4a5a54f-1022-47b3-9c50-77c6139d7fc9 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=0f47da63-9d7d-487c-8b99-ea7d5497f7f7 none swap sw 0 0
10.0.0.150:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data/{{ ansible_hostname }} /data nfs defaults 0 0