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

@@ -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