---
- name: set timezone to etc/utc
  sudo: yes
  file:
    src: /usr/share/zoneinfo/Etc/UTC
    dest: /etc/localtime
    state: link
    force: yes

- name: disable swap
  sudo: yes
  sysctl:
    name: vm.swappiness
    value: "0"
    reload: yes  
    state: present

- name: setup latest centos and epel-release repos
  sudo: yes
  yum:
    name: "{{ item }}"
    state: latest
  with_items:
    - centos-release
    - epel-release

- name: enable centos-fasttrack repo
  sudo: yes
  copy:
    src: CentOS-fasttrack.repo
    dest: /etc/yum.repos.d/CentOS-fasttrack.repo
    owner: root
    group: root
    mode: 0644

---
- name: set timezone to etc/utc
  sudo: yes
  file:
    src: /usr/share/zoneinfo/Etc/UTC
    dest: /etc/localtime
    state: link
    force: yes

- name: set vm.swappiness to 10
  sudo: yes
  sysctl:
    name: vm.swappiness
    value: "10"
    reload: yes  
    state: present

- name: setup latest centos and epel-release repos
  sudo: yes
  yum:
    name: "{{ item }}"
    state: latest
  with_items:
    - centos-release
    - epel-release

- name: enable centos-fasttrack repo
  sudo: yes
  copy:
    src: CentOS-fasttrack.repo
    dest: /etc/yum.repos.d/CentOS-fasttrack.repo
    owner: root
    group: root
    mode: 0644

Set vm.swappiness to less aggressive value of 10
Set vm.swappiness to less aggressive value of 10