Added nfs mount, sshpass, and serialization to playbook
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
12
roles/common/templates/fstab.j2
Normal file
12
roles/common/templates/fstab.j2
Normal 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
|
||||
Reference in New Issue
Block a user