Set nolock for nfs mount for mysql and templating a testing framework

This commit is contained in:
2018-04-23 19:47:55 -04:00
parent c76465f4a6
commit fece272f15
6 changed files with 58 additions and 3 deletions

View File

@@ -67,12 +67,14 @@
get_url:
url: "https://github.com/docker/compose/releases/download/{{docker_compose_version_to_install}}/docker-compose-{{ ansible_system }}-{{ ansible_userspace_architecture }}"
dest: /usr/local/bin/docker-compose
validate_certs: false
mode: 755
group: docker
- name: Set timezone to NewYork
timezone:
name: America/New_York
ignore_errors: true
- name: Replace sudoers file
template: src=../roles/common/templates/sudoers.j2 dest=/etc/sudoers
@@ -107,7 +109,7 @@
lineinfile: dest=/etc/fstab
regexp=\/data
state=present
line="{{ nfs_location }}:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data /data nfs defaults 0 0"
line="{{ nfs_location }}:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data /data nfs defaults,nolock 0 0"
- name: Mount USB lab data directory
mount:
@@ -115,7 +117,8 @@
src: 10.0.0.150:/volumeUSB1/usbshare/raw-files/fileserver/shares/lab-data
state: mounted
fstype: nfs
ignore_errors: true
- name: test for swap partition
shell: swapon -s | grep -E "^/"
register: swapfile
@@ -136,6 +139,7 @@
- name: prepare swapfile
when: swapfile|failed
shell: mkswap /swapfile
ignore_errors: yes
- name: enable swap
when: swapfile|failed